Loading...
Searching...
No Matches
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::AbstractDataField
describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:47
DataProvider::AbstractDataProviderType
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:187
DataProvider::AbstractDataProviderType::tags
*hash< auto > tags
type tags
Definition: AbstractDataProviderType.qc.dox.h:203
DataProvider::AbstractDataProviderType::options
hash< auto > options
type options
Definition: AbstractDataProviderType.qc.dox.h:200
DataProvider::HashDeclDataType
describes a data type based on a hashdecl
Definition: HashDeclDataType.qc.dox.h:34
DataProvider::HashDeclDataType::getOrNothingType
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
DataProvider::HashDeclDataType::getField
*AbstractDataField getField(string name)
Returns the given field, if present, or NOTHING if not.
DataProvider::HashDeclDataType::getFields
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
DataProvider::HashDeclDataType::acceptsValue
auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
DataProvider::HashDeclDataType::getTypedHash
TypedHash getTypedHash()
Returns the TypedHash backing the type.
DataProvider::HashDeclDataType::constructor
constructor(Type type, *hash< auto > options, *hash< auto > tags)
creates the object from a TypedHash Type
DataProvider::HashDeclDataType::constructor
constructor(TypedHash hd, *hash< auto > options, *hash< auto > tags)
creates the object from the TypedHash
DataProvider::HashDeclDataType::isAssignableFrom
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
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:31
DataProvider::QoreDataType::type
Type type
the Qore type
Definition: QoreDataType.qc.dox.h:36
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27