Qore DataProvider Module Reference  2.7
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  private constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing,
42  *hash<auto> options, *hash<auto> tags)
43  ;
44 
45 
48  *hash<auto> tags)
49  ;
50 
51 
53  constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
54  ;
55 
56 
58  constructor(string name, AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options,
59  *hash<auto> tags)
60  ;
61 
62 
64  constructor(string name, Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
65  ;
66 
67 
69  string getName();
70 
71 
73  string getDesc();
74 
75 
77  *Type getValueType();
78 
79 
82 
83 
85  *hash<string, AbstractDataField> getFields();
86 
87 
89  hash<string, bool> getAcceptTypeHash();
90 
91 
93  hash<string, bool> getReturnTypeHash();
94 
95 
97 
100 
101 
103 protected:
104  Type getQoreType(Type element_type, bool or_nothing);
105 public:
106 
107 };
108 };
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
Type getQoreType(Type element_type, bool or_nothing)
Returns the underlying Qore type for this type.
private constructor(string name, Type qelement_type, AbstractDataProviderType element_type, bool or_nothing, *hash< auto > options, *hash< auto > tags)
creates the object
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(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
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.
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