HashDeclDataType.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
// assume local scope for variables, do not use "$" signs
// require type definitions everywhere
// enable all warnings
namespace DataProvider {
class HashDeclDataType : public QoreDataType {
public:
protected:
TypedHash hd;
public:
constructor(TypedHash hd, *hash<auto> options, *hash<auto> tags) ;
protected:
constructor(Type type, *hash<auto> options, *hash<auto> tags) ;
public:
auto acceptsValue(auto value);
bool isAssignableFrom(AbstractDataProviderType t);
*hash<string, AbstractDataField> getFields();
*AbstractDataField getField(string name);
TypedHash getTypedHash();
AbstractDataProviderType getSoftType();
AbstractDataProviderType getOrNothingType();
};
};
DataProvider::HashDeclDataType::acceptsValue
auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
DataProvider::HashDeclDataType::getField
*AbstractDataField getField(string name)
Returns the given field, if present, or NOTHING if not.
DataProvider::HashDeclDataType::isAssignableFrom
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
DataProvider::HashDeclDataType::getFields
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
DataProvider::QoreDataType::type
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:42
DataProvider::HashDeclDataType
describes a data type based on a hashdecl
Definition: HashDeclDataType.qc.dox.h:34
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:118
DataProvider::HashDeclDataType::getOrNothingType
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
DataProvider::HashDeclDataType::getTypedHash
TypedHash getTypedHash()
Returns the TypedHash backing the type.
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:115
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:105
DataProvider::AbstractDataField
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:44
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
DataProvider::HashDeclDataType::getSoftType
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
DataProvider::QoreDataType
describes a data type based on a Qore data type
Definition: QoreDataType.qc.dox.h:37
DataProvider::AbstractDataProviderType::constructor
constructor()
creates the type