Qore DataProvider Module Reference  1.2.1
ListDataType.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29 
30 
32 namespace DataProvider {
35 
36 public:
37 protected:
39  string name;
40 
43 
45  *hash<string, bool> accept_type_hash;
46 
48  *hash<string, bool> return_type_hash;
49 
50 public:
51 
54 
55 
57  constructor(Type element_type, bool or_nothing = False);
58 
59 
61  string getName();
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:
96  init(AbstractDataProviderType element_type, bool or_nothing);
97 public:
98 
99 };
100 };
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
string name
the name of the type
Definition: ListDataType.qc.dox.h:39
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
string getName()
returns the type name
const False
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
*hash< string, bool > return_type_hash
hash of base types returned by this type; keys are type names
Definition: ListDataType.qc.dox.h:48
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:42
*Type getValueType()
returns the base type for the type, if any
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:88
*hash< string, bool > accept_type_hash
hash of base types accepted by this type; keys are type names
Definition: ListDataType.qc.dox.h:45
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:34
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization