| Qore DataProvider Module Reference 2.3

ListDataType.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace DataProvider {
28 class ListDataType : public AbstractDataProviderType {
29
30 public:
31 protected:
33 string name;
34
36 AbstractDataProviderType element_type;
37
39 *hash<string, bool> accept_type_hash;
40
42 *hash<string, bool> return_type_hash;
43
44 public:
45
47 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
48
49
51 constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
52 ;
53
54
56 string getName();
57
58
60 *Type getValueType();
61
62
64 *AbstractDataProviderType getElementType();
65
66
68 *hash<string, AbstractDataField> getFields();
69
70
72 hash<string, bool> getAcceptTypeHash();
73
74
76 hash<string, bool> getReturnTypeHash();
77
78
80
86 auto acceptsValue(auto value);
87
88
90 protected:
91 init(AbstractDataProviderType element_type, bool or_nothing);
92 public:
93
94 };
95 };
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:112
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:125
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:122
DataProvider::ListDataType
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:28
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:39
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:33
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:42
DataProvider::ListDataType::constructor
constructor(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
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:36
DataProvider::ListDataType::init
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
DataProvider::ListDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider::ListDataType::constructor
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
False
const False
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27