Qore DataProvider Module Reference 2.7.3
Loading...
Searching...
No Matches
ListDataType.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace DataProvider {
28class ListDataType : public QoreDataType {
29
30public:
31protected:
33 string name;
34
37
38public:
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
82
83
85 *hash<string, AbstractDataField> getFields();
86
87
89 hash<string, bool> getAcceptTypeHash();
90
91
93 hash<string, bool> getReturnTypeHash();
94
95
97
100
101
103protected:
104 Type getQoreType(Type element_type, bool or_nothing);
105public:
106
107};
108};
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:206
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:222
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:219
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:28
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
Type getQoreType(Type element_type, bool or_nothing)
Returns the underlying Qore type for this type.
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
private constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash< auto > options, *hash< auto > tags)
creates the object
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
string name
the name of the type
Definition: ListDataType.qc.dox.h:33
constructor(string name, Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
string getName()
returns the type name
constructor(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
constructor(string name, AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
*Type getValueType()
returns the base type for the type, if any
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:36
string getDesc()
Returns the description.
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:31
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27