Qore DataProvider Module Reference  2.3
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 
47 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
48 
49 
51  constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
52  ;
53 
54 
56  string getName();
57 
58 
60  *Type getValueType();
61 
62 
65 
66 
68  *hash<string, AbstractDataField> getFields();
69 
70 
72  hash<string, bool> getAcceptTypeHash();
73 
74 
76  hash<string, bool> getReturnTypeHash();
77 
78 
80 
86  auto acceptsValue(auto value);
87 
88 
90 protected:
92 public:
93 
94 };
95 };
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:112
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:125
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:122
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
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