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::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:93
DataProvider::ListDataType
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:34
DataProvider::ListDataType::getFields
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
DataProvider::ListDataType::getElementType
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
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
DataProvider::ListDataType::constructor
constructor(AbstractDataProviderType element_type, bool or_nothing=False)
creates the object
DataProvider::ListDataType::getReturnTypeHash
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
DataProvider::ListDataType::name
string name
the name of the type
Definition: ListDataType.qc.dox.h:39
DataProvider::ListDataType::getName
string getName()
returns the type name
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::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
DataProvider::ListDataType::getValueType
*Type getValueType()
returns the base type for the type, if any
DataProvider::ListDataType::element_type
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:42
DataProvider::ListDataType::init
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
DataProvider::ListDataType::constructor
constructor(Type element_type, bool or_nothing=False)
creates the object
DataProvider::ListDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
False
const False
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32