ListDataType.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DataProvider {
class ListDataType : public AbstractDataProviderType {
public:
protected:
string name;
AbstractDataProviderType element_type;
*hash<string, bool> accept_type_hash;
*hash<string, bool> return_type_hash;
public:
constructor(AbstractDataProviderType element_type, bool or_nothing = False);
constructor(Type element_type, bool or_nothing = False);
string getName();
*Type getValueType();
*AbstractDataProviderType getElementType();
*hash<string, AbstractDataField> getFields();
hash<string, bool> getAcceptTypeHash();
hash<string, bool> getReturnTypeHash();
auto acceptsValue(auto value);
protected:
init(AbstractDataProviderType element_type, bool or_nothing);
public:
};
};
DataProvider::ListDataType::init
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
DataProvider::ListDataType::getName
string getName()
returns the type name
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:161
DataProvider::ListDataType::return_type_hash
*hash< string, bool > return_type_hash
hash of base types returned by this type; keys are type names
Definition: ListDataType.qc.dox.h:48
DataProvider::ListDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
DataProvider::ListDataType::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
DataProvider::ListDataType::getFields
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
DataProvider::ListDataType::element_type
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:42
DataProvider::ListDataType::getReturnTypeHash
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
False
const False
DataProvider::ListDataType
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:34
DataProvider::ListDataType::getElementType
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
DataProvider::ListDataType::getValueType
*Type getValueType()
returns the base type for the type, if any
DataProvider::AbstractDataProviderType::constructor
constructor()
creates the type
DataProvider::ListDataType::name
string name
the name of the type
Definition: ListDataType.qc.dox.h:39
DataProvider::ListDataType::accept_type_hash
*hash< string, bool > accept_type_hash
hash of base types accepted by this type; keys are type names
Definition: ListDataType.qc.dox.h:45