| Qore DataProvider Module Reference 1.2.1

ListDataType.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29
30
32 namespace DataProvider {
34 class ListDataType : public AbstractDataProviderType {
35
36 public:
37 protected:
39 string name;
40
42 AbstractDataProviderType element_type;
43
45 *hash<string, bool> accept_type_hash;
46
48 *hash<string, bool> return_type_hash;
49
50 public:
51
53 constructor(AbstractDataProviderType element_type, bool or_nothing = False);
54
55
57 constructor(Type element_type, bool or_nothing = False);
58
59
61 string getName();
62
63
65 *Type getValueType();
66
67
69 *AbstractDataProviderType getElementType();
70
71
73 *hash<string, AbstractDataField> getFields();
74
75
77 hash<string, bool> getAcceptTypeHash();
78
79
81 hash<string, bool> getReturnTypeHash();
82
83
85
91 auto acceptsValue(auto value);
92
93
95 protected:
96 init(AbstractDataProviderType element_type, bool or_nothing);
97 public:
98
99 };
100 };
DataProvider::ListDataType::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted 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::getElementType
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
DataProvider::ListDataType::getName
string getName()
returns the type name
False
const False
DataProvider::ListDataType::getReturnTypeHash
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
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::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::getValueType
*Type getValueType()
returns the base type for the type, if any
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
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
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:34
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:27
DataProvider::ListDataType::init
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
DataProvider::AbstractDataProviderType::constructor
constructor()
creates the type