$darkmode
Qore DataProvider Module Reference 2.7.5
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 
37 
38 public:
39 
41 protected:
42  constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash<auto> options, *hash<auto> tags)
43 public:
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 
110 protected:
111  Type getQoreType(Type element_type, bool or_nothing);
112 public:
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
*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) 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 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 > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
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 > getAcceptTypeHash()
returns a hash of base types accepted 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.
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
const False
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27