Qore DataProvider Module Reference 3.0
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:
34
35public:
36
38protected:
39 constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash<auto> options, *hash<auto> tags, *list<auto> default_value, *hash<NameDescInfo> attr)
40public:
41 ;
42
43
45 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags, *list<auto> default_value, *hash<NameDescInfo> attr)
46 ;
47
48
50 constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags, *list<auto> default_value, *hash<NameDescInfo> attr)
51 ;
52
53
55 constructor(string name, AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags, *list<auto> default_value, *hash<NameDescInfo> attr)
56 ;
57
58
60 constructor(string name, Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags, *list<auto> default_value, *hash<NameDescInfo> attr)
61 ;
62
63
66
67
69 string getDesc();
70
71
73 *Type getValueType();
74
75
78
79
81 *hash<string, AbstractDataField> getFields();
82
83
85
91 auto acceptsValue(auto value);
92
93
96
97
99protected:
100 Type getQoreType(Type element_type, bool or_nothing);
101public:
102
103};
104};
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
*hash< auto > tags
type tags
Definition AbstractDataProviderType.qc.dox.h:155
hash< auto > options
type options
Definition AbstractDataProviderType.qc.dox.h:152
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.
constructor(string name, AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags, *list< auto > default_value, *hash< NameDescInfo > attr)
creates the object
constructor(string name, Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags, *list< auto > default_value, *hash< NameDescInfo > attr)
creates the object
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash< auto > options, *hash< auto > tags, *list< auto > default_value, *hash< NameDescInfo > attr) publi constructor)(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags, *list< auto > default_value, *hash< NameDescInfo > attr)
creates the object
Definition ListDataType.qc.dox.h:45
updateElementType(AbstractDataProviderType element_type)
Updates the element type.
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags, *list< auto > default_value, *hash< NameDescInfo > attr)
creates the object
*Type getValueType()
returns the base type for the type, if any
AbstractDataProviderType element_type
element type
Definition ListDataType.qc.dox.h:33
string getDesc()
Returns the description.
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
ListDataType copyWithElementType(AbstractDataProviderType element_type)
Copies the object and assigns a new element type to the copy.
describes a data type based on a Qore data type
Definition QoreDataType.qc.dox.h:46
auto default_value
Default value for type.
Definition QoreDataType.qc.dox.h:72
string name
The name of the type; if not set then the name of "type" is used instead.
Definition QoreDataType.qc.dox.h:54
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27