rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
r_Primitive_Type Class Reference

This class represents all primitive types in the ODMG conformant representation of the RasDaMan type system. More...

#include <primitivetype.hh>

Inheritance diagram for r_Primitive_Type:
r_Base_Type r_Type r_Meta_Object r_Complex_Type

Public Member Functions

 r_Primitive_Type (const char *newTypeName, const r_Type::r_Type_Id newTypeId)
 
 r_Primitive_Type (const r_Primitive_Type &oldObj)
 
 ~r_Primitive_Type () override=default
 
const r_Primitive_Typeoperator= (const r_Primitive_Type &oldObj)
 
r_Typeclone () const override
 clone operation More...
 
r_Type::r_Type_Id type_id () const override
 retrieve id of the type. More...
 
void convertToLittleEndian (char *cells, r_Area noCells) const override
 converts array of cells from NT byte order to Unix byte order. More...
 
void convertToBigEndian (char *cells, r_Area noCells) const override
 converts array of cells from Unix byte order to NT byte order. More...
 
void print_status (std::ostream &s) const override
 writes state of object to specified stream More...
 
bool isPrimitiveType () const override
 check, if type is primitive. More...
 
void print_value (const char *storage, std::ostream &s) const override
 prints value of a primitive type More...
 
r_Double get_value (const char *cell) const
 
void set_value (char *cell, r_Double)
 
void get_limits (r_Double &, r_Double &)
 
r_Boolean get_boolean (const char *cell) const
 
r_Char get_char (const char *cell) const
 
r_Octet get_octet (const char *cell) const
 
r_Short get_short (const char *cell) const
 
r_UShort get_ushort (const char *cell) const
 
r_Long get_long (const char *cell) const
 
r_ULong get_ulong (const char *cell) const
 
r_Float get_float (const char *cell) const
 
r_Double get_double (const char *cell) const
 
void set_boolean (char *cell, r_Boolean)
 
void set_char (char *cell, r_Char)
 
void set_octet (char *cell, r_Octet)
 
void set_short (char *cell, r_Short)
 
void set_ushort (char *cell, r_UShort)
 
void set_long (char *cell, r_Long)
 
void set_ulong (char *cell, r_ULong)
 
void set_float (char *cell, r_Float)
 
void set_double (char *cell, r_Double)
 
- Public Member Functions inherited from r_Base_Type
 r_Base_Type ()=default
 default constructor. More...
 
 r_Base_Type (const char *newTypeName, r_Bytes newSize)
 constructor getting name of basetype. More...
 
 r_Base_Type (const r_Base_Type &)
 copy constructor More...
 
const r_Base_Typeoperator= (const r_Base_Type &oldObj)
 assignment operator. More...
 
virtual ~r_Base_Type ()=default
 destructor. More...
 
virtual bool isBaseType () const
 check, if type is a base type (primitive type or structure type). More...
 
r_Bytes size () const
 retrieve size of the type. More...
 
- Public Member Functions inherited from r_Type
 r_Type ()=default
 default constructor. More...
 
 r_Type (const char *newTypeName)
 constructor getting name of type. More...
 
virtual ~r_Type ()=default
 destructor. More...
 
virtual bool isStructType () const
 check, if type is primitive or structured. More...
 
virtual bool isComplexType () const
 check, if type is a base type ( primitive type or structure type). More...
 
virtual bool isMarrayType () const
 check, if type is a marray type. More...
 
virtual bool isSintervalType () const
 check, if type is a Sinterval More...
 
virtual bool isMintervalType () const
 check, if type is a Minterval More...
 
virtual bool isCollectionType () const
 check, if type is a Colelction type More...
 
virtual bool isPointType () const
 check, if type is a Point More...
 
virtual bool isOidType () const
 check, if type is a oid More...
 
virtual bool isStringType () const
 check, if type is a string More...
 
- Public Member Functions inherited from r_Meta_Object
 r_Meta_Object ()=default
 default constructor. More...
 
 r_Meta_Object (const char *newTypeName)
 constructor getting name of type. More...
 
virtual ~r_Meta_Object ()=default
 destructor. More...
 
const char * name () const
 retrieve name of the type. More...
 

Protected Member Functions

 r_Primitive_Type ()=default
 default constructor. More...
 
void checkType (r_Type::r_Type_Id cellType) const
 

Protected Attributes

r_Type::r_Type_Id typeId {UNKNOWNTYPE}
 
- Protected Attributes inherited from r_Base_Type
r_Bytes typeSize {}
 storing size of type in bytes More...
 
- 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_Typeget_any_type (const char *type_string)
 build type schema from string representation More...
 
static r_Typeget_any_type (const std::string &type_string)
 

Detailed Description

This class represents all primitive types in the ODMG conformant representation of the RasDaMan type system.

Examples are ULONG or BOOL.

Constructor & Destructor Documentation

◆ r_Primitive_Type() [1/3]

r_Primitive_Type::r_Primitive_Type ( const char *  newTypeName,
const r_Type::r_Type_Id  newTypeId 
)

◆ r_Primitive_Type() [2/3]

r_Primitive_Type::r_Primitive_Type ( const r_Primitive_Type oldObj)

◆ ~r_Primitive_Type()

r_Primitive_Type::~r_Primitive_Type ( )
overridedefault

◆ r_Primitive_Type() [3/3]

r_Primitive_Type::r_Primitive_Type ( )
protecteddefault

default constructor.

Member Function Documentation

◆ checkType()

void r_Primitive_Type::checkType ( r_Type::r_Type_Id  cellType) const
protected

◆ clone()

r_Type* r_Primitive_Type::clone ( ) const
overridevirtual

clone operation

Implements r_Type.

◆ convertToBigEndian()

void r_Primitive_Type::convertToBigEndian ( char *  cells,
r_Area  noCells 
) const
overridevirtual

converts array of cells from Unix byte order to NT byte order.

Implements r_Type.

◆ convertToLittleEndian()

void r_Primitive_Type::convertToLittleEndian ( char *  cells,
r_Area  noCells 
) const
overridevirtual

converts array of cells from NT byte order to Unix byte order.

Implements r_Type.

◆ get_boolean()

r_Boolean r_Primitive_Type::get_boolean ( const char *  cell) const

◆ get_char()

r_Char r_Primitive_Type::get_char ( const char *  cell) const

◆ get_double()

r_Double r_Primitive_Type::get_double ( const char *  cell) const

◆ get_float()

r_Float r_Primitive_Type::get_float ( const char *  cell) const

◆ get_limits()

void r_Primitive_Type::get_limits ( r_Double ,
r_Double  
)

◆ get_long()

r_Long r_Primitive_Type::get_long ( const char *  cell) const

◆ get_octet()

r_Octet r_Primitive_Type::get_octet ( const char *  cell) const

◆ get_short()

r_Short r_Primitive_Type::get_short ( const char *  cell) const

◆ get_ulong()

r_ULong r_Primitive_Type::get_ulong ( const char *  cell) const

◆ get_ushort()

r_UShort r_Primitive_Type::get_ushort ( const char *  cell) const

◆ get_value()

r_Double r_Primitive_Type::get_value ( const char *  cell) const

◆ isPrimitiveType()

bool r_Primitive_Type::isPrimitiveType ( ) const
overridevirtual

check, if type is primitive.

Reimplemented from r_Type.

◆ operator=()

const r_Primitive_Type& r_Primitive_Type::operator= ( const r_Primitive_Type oldObj)

◆ print_status()

void r_Primitive_Type::print_status ( std::ostream &  s) const
overridevirtual

writes state of object to specified stream

Implements r_Meta_Object.

◆ print_value()

void r_Primitive_Type::print_value ( const char *  storage,
std::ostream &  s 
) const
overridevirtual

prints value of a primitive type

Implements r_Base_Type.

◆ set_boolean()

void r_Primitive_Type::set_boolean ( char *  cell,
r_Boolean   
)

◆ set_char()

void r_Primitive_Type::set_char ( char *  cell,
r_Char   
)

◆ set_double()

void r_Primitive_Type::set_double ( char *  cell,
r_Double   
)

◆ set_float()

void r_Primitive_Type::set_float ( char *  cell,
r_Float   
)

◆ set_long()

void r_Primitive_Type::set_long ( char *  cell,
r_Long   
)

◆ set_octet()

void r_Primitive_Type::set_octet ( char *  cell,
r_Octet   
)

◆ set_short()

void r_Primitive_Type::set_short ( char *  cell,
r_Short   
)

◆ set_ulong()

void r_Primitive_Type::set_ulong ( char *  cell,
r_ULong   
)

◆ set_ushort()

void r_Primitive_Type::set_ushort ( char *  cell,
r_UShort   
)

◆ set_value()

void r_Primitive_Type::set_value ( char *  cell,
r_Double   
)

◆ type_id()

r_Type::r_Type_Id r_Primitive_Type::type_id ( ) const
overridevirtual

retrieve id of the type.

Implements r_Type.

Member Data Documentation

◆ typeId

r_Type::r_Type_Id r_Primitive_Type::typeId {UNKNOWNTYPE}
protected

The documentation for this class was generated from the following file: