![]() |
rasdaman client API 10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
This class represents all user defined structured types in the ODMG conformant representation of the RasDaMan type system. More...
#include <structuretype.hh>
Public Member Functions | |
| r_Structure_Type ()=default | |
| default constructor. | |
| r_Structure_Type (const char *newTypeName, unsigned int newNumAttrs, r_Attribute *newAttrs, int offset=0) | |
| constructor getting name of type and type id. | |
| r_Structure_Type (const r_Structure_Type &oldObj) | |
| copy constructor | |
| const r_Structure_Type & | operator= (const r_Structure_Type &oldObj) |
| assignment operator. | |
| ~r_Structure_Type () override=default | |
| destructor. | |
| r_Type * | clone () const override |
| clone operation | |
| r_Type::r_Type_Id | type_id () const override |
| retrieve id of the type. | |
| bool | isStructType () const override |
| check, if type is primitive or structured. | |
| virtual bool | compatibleWith (const r_Structure_Type *myType) const |
| check, if this type is compatible with myType (e.g. check the structure ignoring then names of atributtes) | |
| r_Attribute & | resolve_attribute (const char *name) |
| return attribute specified by name. | |
| r_Attribute & | resolve_attribute (unsigned int number) |
| return attribute specified by number starting with zero. | |
| r_Attribute & | operator[] (unsigned int number) |
| subscript operator to access attributes by index | |
| const r_Attribute & | resolve_attribute (const char *name) const |
| return attribute specified by name. | |
| const r_Attribute & | resolve_attribute (unsigned int number) const |
| return attribute specified by number starting with zero. | |
| const r_Attribute & | operator[] (unsigned int number) const |
| subscript operator to access attributes by index | |
| const std::vector< r_Attribute > & | getAttributes () const |
| unsigned int | count_elements () const |
| get number of attributes | |
| void | convertToLittleEndian (char *cells, r_Area noCells) const override |
| converts array of cells from NT byte order to Unix byte order. | |
| void | convertToBigEndian (char *cells, r_Area noCells) const override |
| converts array of cells from Unix byte order to NT byte order. | |
| void | print_status (std::ostream &s) const override |
| writes state of object to specified stream | |
| void | print_value (const char *storage, std::ostream &s) const override |
| prints values of a structured type | |
Public Member Functions inherited from r_Base_Type | |
| r_Base_Type ()=default | |
| default constructor. | |
| r_Base_Type (const char *newTypeName, r_Bytes newSize) | |
| constructor getting name of basetype. | |
| r_Base_Type (const r_Base_Type &) | |
| copy constructor | |
| const r_Base_Type & | operator= (const r_Base_Type &oldObj) |
| assignment operator. | |
| virtual | ~r_Base_Type ()=default |
| destructor. | |
| virtual bool | isBaseType () const |
| check, if type is a base type (primitive type or structure type). | |
| r_Bytes | size () const |
| retrieve size of the type. | |
Public Member Functions inherited from r_Type | |
| r_Type ()=default | |
| default constructor. | |
| r_Type (const char *newTypeName) | |
| constructor getting name of type. | |
| virtual | ~r_Type ()=default |
| destructor. | |
| virtual bool | isComplexType () const |
| check, if type is a base type ( primitive type or structure type). | |
| virtual bool | isMarrayType () const |
| check, if type is a marray type. | |
| virtual bool | isPrimitiveType () const |
| check, if type is a primitive type. | |
| virtual bool | isSintervalType () const |
| check, if type is a Sinterval | |
| virtual bool | isMintervalType () const |
| check, if type is a Minterval | |
| virtual bool | isCollectionType () const |
| check, if type is a Colelction type | |
| virtual bool | isPointType () const |
| check, if type is a Point | |
| virtual bool | isOidType () const |
| check, if type is a oid | |
| virtual bool | isStringType () const |
| check, if type is a string | |
Public Member Functions inherited from r_Meta_Object | |
| r_Meta_Object ()=default | |
| default constructor. | |
| r_Meta_Object (const char *newTypeName) | |
| constructor getting name of type. | |
| virtual | ~r_Meta_Object ()=default |
| destructor. | |
| const char * | name () const |
| retrieve name of the type. | |
Protected Attributes | |
| std::vector< r_Attribute > | myAttributes |
Protected Attributes inherited from r_Base_Type | |
| r_Bytes | typeSize {} |
| storing size of type in bytes | |
Protected Attributes inherited from r_Meta_Object | |
| std::string | typeName |
Additional Inherited Members | |
Public Types inherited from r_Type | |
| enum | r_Type_Id { ULONG , USHORT , BOOL , LONG , SHORT , OCTET , DOUBLE , FLOAT , CHAR , COMPLEXTYPE1 , COMPLEXTYPE2 , CINT16 , CINT32 , STRUCTURETYPE , MARRAYTYPE , COLLECTIONTYPE , SINTERVALTYPE , MINTERVALTYPE , POINTTYPE , OIDTYPE , STRINGTYPE , UNKNOWNTYPE } |
| typedef for the enum specifying a primitive type, structure type, marray type, interval type, minterval type, point type or oid type More... | |
Static Public Member Functions inherited from r_Type | |
| static r_Type * | get_any_type (const char *type_string) |
| build type schema from string representation | |
| static r_Type * | get_any_type (const std::string &type_string) |
This class represents all user defined structured types in the ODMG conformant representation of the RasDaMan type system.
|
default |
default constructor.
| r_Structure_Type::r_Structure_Type | ( | const char * | newTypeName, |
| unsigned int | newNumAttrs, | ||
| r_Attribute * | newAttrs, | ||
| int | offset = 0 |
||
| ) |
constructor getting name of type and type id.
| r_Structure_Type::r_Structure_Type | ( | const r_Structure_Type & | oldObj | ) |
copy constructor
|
overridedefault |
destructor.
|
virtual |
check, if this type is compatible with myType (e.g. check the structure ignoring then names of atributtes)
|
overridevirtual |
converts array of cells from Unix byte order to NT byte order.
Implements r_Type.
|
overridevirtual |
converts array of cells from NT byte order to Unix byte order.
Implements r_Type.
| unsigned int r_Structure_Type::count_elements | ( | ) | const |
get number of attributes
| const std::vector< r_Attribute > & r_Structure_Type::getAttributes | ( | ) | const |
|
overridevirtual |
check, if type is primitive or structured.
Reimplemented from r_Type.
| const r_Structure_Type & r_Structure_Type::operator= | ( | const r_Structure_Type & | oldObj | ) |
assignment operator.
| r_Attribute & r_Structure_Type::operator[] | ( | unsigned int | number | ) |
subscript operator to access attributes by index
| const r_Attribute & r_Structure_Type::operator[] | ( | unsigned int | number | ) | const |
subscript operator to access attributes by index
|
overridevirtual |
writes state of object to specified stream
Implements r_Meta_Object.
|
overridevirtual |
prints values of a structured type
Implements r_Base_Type.
| r_Attribute & r_Structure_Type::resolve_attribute | ( | const char * | name | ) |
return attribute specified by name.
| const r_Attribute & r_Structure_Type::resolve_attribute | ( | const char * | name | ) | const |
return attribute specified by name.
| r_Attribute & r_Structure_Type::resolve_attribute | ( | unsigned int | number | ) |
return attribute specified by number starting with zero.
| const r_Attribute & r_Structure_Type::resolve_attribute | ( | unsigned int | number | ) | const |
return attribute specified by number starting with zero.
|
overridevirtual |
retrieve id of the type.
Implements r_Type.
|
protected |