Qore DataProvider Module Reference  2.4
ListDataType.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace DataProvider {
29 
30 public:
31 protected:
33  string name;
34 
37 
39  *hash<string, bool> accept_type_hash;
40 
42  *hash<string, bool> return_type_hash;
43 
44 public:
45 
48  *hash<auto> tags) ;
49 
50 
52  constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
53  ;
54 
55 
57  string getName();
58 
59 
61  string getDesc();
62 
63 
65  *Type getValueType();
66 
67 
70 
71 
73  *hash<string, AbstractDataField> getFields();
74 
75 
77  hash<string, bool> getAcceptTypeHash();
78 
79 
81  hash<string, bool> getReturnTypeHash();
82 
83 
85 
91  auto acceptsValue(auto value);
92 
93 
95 protected:
97 public:
98 
99 };
100 };
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:187
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:203
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:200
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
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
*hash< string, bool > accept_type_hash
hash of base types accepted by this type; keys are type names
Definition: ListDataType.qc.dox.h:39
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
string getName()
returns the type name
*hash< string, bool > return_type_hash
hash of base types returned by this type; keys are type names
Definition: ListDataType.qc.dox.h:42
constructor(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
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
string getDesc()
Returns the description.
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
const False
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27