| Qore DataProvider Module Reference 3.2.2

Loading...
Searching...
No Matches
ListDataType.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 namespace DataProvider {
28 class ListDataType : public QoreDataType {
29
30 public:
31 protected:
33 AbstractDataProviderType element_type;
34
35 public:
36
38 protected:
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)
40 public:
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
65 ListDataType copyWithElementType(AbstractDataProviderType element_type);
66
67
69 string getDesc();
70
71
73 *Type getValueType();
74
75
77 *AbstractDataProviderType getElementType();
78
79
81 *hash<string, AbstractDataField> getFields();
82
83
85
91 auto acceptsValue(auto value);
92
93
95 updateElementType(AbstractDataProviderType element_type);
96
97
99 protected:
100 Type getQoreType(Type element_type, bool or_nothing);
101 public:
102
103};
104};
DataProvider::AbstractDataProviderType
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition AbstractDataProviderType.qc.dox.h:155
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition AbstractDataProviderType.qc.dox.h:152
DataProvider::ListDataType
describes a data type based on a hash
Definition ListDataType.qc.dox.h:28
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
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
DataProvider::ListDataType::constructor
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
DataProvider::ListDataType::getFields
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
DataProvider::ListDataType::constructor
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
DataProvider::ListDataType::updateElementType
updateElementType(AbstractDataProviderType element_type)
Updates the element type.
DataProvider::ListDataType::constructor
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags, *list< auto > default_value, *hash< NameDescInfo > attr)
creates the object
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:33
DataProvider::ListDataType::getDesc
string getDesc()
Returns the description.
DataProvider::ListDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
DataProvider::ListDataType::copyWithElementType
ListDataType copyWithElementType(AbstractDataProviderType element_type)
Copies the object and assigns a new element type to the copy.
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition QoreDataType.qc.dox.h:46
DataProvider::QoreDataType::default_value
auto default_value
Default value for type.
Definition QoreDataType.qc.dox.h:72
DataProvider::QoreDataType::name
string name
The name of the type; if not set then the name of "type" is used instead.
Definition QoreDataType.qc.dox.h:54
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27