describes a data type based on a hashdecl
Definition AbstractDataField.qc.dox.h:74
describes a data type
Definition AbstractDataProviderType.qc.dox.h:139
*hash< auto > tags
type tags
Definition AbstractDataProviderType.qc.dox.h:155
hash< auto > options
type options
Definition AbstractDataProviderType.qc.dox.h:152
describes a data type based on a hashdecl
Definition HashDeclDataType.qc.dox.h:34
AbstractDataProviderType getOrNothingType()
Returns an "or nothing" type equivalent to the current type.
*AbstractDataField getField(string name)
Returns the given field, if present, or nothing if not.
constructor(Type type, *hash< auto > options, *hash< auto > tags, *hash< auto > default_value, *hash< NameDescInfo > attr)
creates the object from a TypedHash Type
*hash< string, AbstractDataField > getFields()
Returns the fields of the data structure; if any.
auto acceptsValue(auto value)
Returns the value if the value can be assigned to the type.
TypedHash getTypedHash()
Returns the TypedHash backing the type.
AbstractDataProviderType getMandatoryType()
Returns a mandatory (i.e. not "or nothing") type equivalent to the current type.
constructor(TypedHash hd, *hash< auto > options, *hash< auto > tags, *hash< auto > default_value, *hash< NameDescInfo > attr)
creates the object from the TypedHash
bool isAssignableFrom(AbstractDataProviderType t)
Returns True if this type can be assigned from values of the argument type.
AbstractDataProviderType getSoftType()
Returns a "soft" type equivalent to the current type.
describes a data type based on a Qore data type
Definition QoreDataType.qc.dox.h:46
auto default_value
Default value for type.
Definition QoreDataType.qc.dox.h:72
string name
The name of the type; if not set then the name of "type" is used instead.
Definition QoreDataType.qc.dox.h:54
Type type
the Qore type
Definition QoreDataType.qc.dox.h:51
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27