| Qore DataProvider Module Reference 2.7.1

ListDataType.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
26 namespace DataProvider {
28 class ListDataType : public QoreDataType {
29
30 public:
31 protected:
33 string name;
34
36 AbstractDataProviderType element_type;
37
38 public:
39
41 private constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing,
42 *hash<auto> options, *hash<auto> tags)
43 ;
44
45
47 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options,
48 *hash<auto> tags)
49 ;
50
51
53 constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
54 ;
55
56
58 constructor(string name, AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options,
59 *hash<auto> tags)
60 ;
61
62
64 constructor(string name, Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
65 ;
66
67
69 string getName();
70
71
73 string getDesc();
74
75
77 *Type getValueType();
78
79
81 *AbstractDataProviderType getElementType();
82
83
85 *hash<string, AbstractDataField> getFields();
86
87
89 hash<string, bool> getAcceptTypeHash();
90
91
93 hash<string, bool> getReturnTypeHash();
94
95
97
99 AbstractDataProviderType getOrNothingType();
100
101
103 protected:
104 Type getQoreType(Type element_type, bool or_nothing);
105 public:
106
107 };
108 };
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:187
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:203
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:200
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::getQoreType
Type getQoreType(Type element_type, bool or_nothing)
Returns the underlying Qore type for this type.
DataProvider::ListDataType::constructor
private constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash< auto > options, *hash< auto > tags)
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:33
DataProvider::ListDataType::constructor
constructor(string name, Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
DataProvider::ListDataType::getName
string getName()
returns the type name
DataProvider::ListDataType::constructor
constructor(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
DataProvider::ListDataType::constructor
constructor(string name, 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::getDesc
string getDesc()
Returns the description.
DataProvider::ListDataType::getOrNothingType
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
DataProvider::ListDataType::constructor
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:31
False
const False
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27