Qore DataProvider Module Reference 2.7.5
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
41protected:
42 constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash<auto> options, *hash<auto> tags)
43public:
44 ;
45
46
48 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
49 ;
50
51
53 constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
54
55
57 constructor(string name, AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
58 ;
59
60
62 constructor(string name, Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
63
64
66 string getName();
67
68
70 string getDesc();
71
72
74 *Type getValueType();
75
76
79
80
82 *hash<string, AbstractDataField> getFields();
83
84
86 hash<string, bool> getAcceptTypeHash();
87
88
90 hash<string, bool> getReturnTypeHash();
91
92
94
97
98
100
106 auto acceptsValue(auto value);
107
108
110protected:
111 Type getQoreType(Type element_type, bool or_nothing);
112public:
113
114};
115};
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
*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(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.
constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash< auto > options, *hash< auto > tags) publi constructor)(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
Definition: ListDataType.qc.dox.h:48
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
auto acceptsValue(auto value)
returns the value if the value can be assigned to the 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