Qore DataProvider Module Reference  2.1.2
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 
32 namespace DataProvider {
35 
36 public:
39  ;
40 
41 
43  constructor(Type element_type, bool or_nothing = False) ;
44 
45 
47  *Type getValueType();
48 
49 
52 
53 
55  *hash<string, AbstractDataField> getFields();
56 
57 
59  hash<string, bool> getAcceptTypeHash();
60 
61 
63  hash<string, bool> getReturnTypeHash();
64 
65 
67 
73  auto acceptsValue(auto value);
74 
75 
77 protected:
78  init(AbstractDataProviderType element_type, bool or_nothing);
79 public:
80 
81 };
82 };
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
describes a data type based on a hash
Definition: SoftListDataType.qc.dox.h:34
const False
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
*Type getValueType()
returns the base type for the type, if any
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:42
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:105
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
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names