Qore DataProvider Module Reference 2.7.5
Loading...
Searching...
No Matches
SoftListDataType.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
32namespace DataProvider {
35
36public:
38 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
39
40
42 constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
43
44
46 constructor(string name, AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
47 ;
48
49
51 constructor(string name, Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags) ;
52
53
56
57
59 *hash<string, AbstractDataField> getFields();
60
61
63 hash<string, bool> getAcceptTypeHash();
64
65
67 hash<string, bool> getReturnTypeHash();
68
69
71
77 auto acceptsValue(auto value);
78
79
81protected:
83public:
84
85
87protected:
88 Type getQoreType(Type element_type, bool or_nothing);
89public:
90
91};
92};
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:206
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:222
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:28
string name
the name of the type
Definition: ListDataType.qc.dox.h:33
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:36
describes a data type based on a hash
Definition: SoftListDataType.qc.dox.h:34
constructor(string name, AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
Type getQoreType(Type element_type, bool or_nothing)
Returns the underlying Qore type for this type.
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
constructor(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
constructor(string name, Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
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