| Qore DataProvider Module Reference 2.3

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 {
34 class SoftListDataType : public ListDataType {
35
36 public:
38 constructor(AbstractDataProviderType element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
39 ;
40
41
43 constructor(Type element_type, bool or_nothing = False, *hash<auto> options, *hash<auto> tags)
44 ;
45
46
48 *Type getValueType();
49
50
52 *AbstractDataProviderType getElementType();
53
54
56 *hash<string, AbstractDataField> getFields();
57
58
60 hash<string, bool> getAcceptTypeHash();
61
62
64 hash<string, bool> getReturnTypeHash();
65
66
68
74 auto acceptsValue(auto value);
75
76
78 protected:
79 init(AbstractDataProviderType element_type, bool or_nothing);
80 public:
81
82 };
83 };
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:112
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:125
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:122
DataProvider::ListDataType
describes a data type based on a hash
Definition: ListDataType.qc.dox.h:28
DataProvider::ListDataType::element_type
AbstractDataProviderType element_type
element type
Definition: ListDataType.qc.dox.h:36
DataProvider::SoftListDataType
describes a data type based on a hash
Definition: SoftListDataType.qc.dox.h:34
DataProvider::SoftListDataType::getReturnTypeHash
hash< string, bool > getReturnTypeHash()
returns a hash of base types returned by this type; keys are type names
DataProvider::SoftListDataType::constructor
constructor(Type element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
DataProvider::SoftListDataType::getValueType
*Type getValueType()
returns the base type for the type, if any
DataProvider::SoftListDataType::getElementType
*AbstractDataProviderType getElementType()
returns the subtype (for lists or hashes) if there is only one
DataProvider::SoftListDataType::init
init(AbstractDataProviderType element_type, bool or_nothing)
common constructor initialization
DataProvider::SoftListDataType::getFields
*hash< string, AbstractDataField > getFields()
returns the fields of the data structure; if any
DataProvider::SoftListDataType::constructor
constructor(AbstractDataProviderType element_type, bool or_nothing=False, *hash< auto > options, *hash< auto > tags)
creates the object
DataProvider::SoftListDataType::getAcceptTypeHash
hash< string, bool > getAcceptTypeHash()
returns a hash of base types accepted by this type; keys are type names
DataProvider::SoftListDataType::acceptsValue
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
False
const False
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27