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

This class represents attributes of structs in the ODMG conformant representation of the RasDaMan type system. More...

#include <attribute.hh>

Inheritance diagram for r_Attribute:
r_Property r_Meta_Object

Public Member Functions

 r_Attribute ()
 default constructor.
 
 r_Attribute (const char *newTypeName, const r_Base_Type &newType)
 constructor getting name and type of attribute.
 
 r_Attribute (const r_Attribute &oldObj)
 copy constructor.
 
const r_Attributeoperator= (const r_Attribute &oldObj)
 assignment operator.
 
 ~r_Attribute () override
 destructor.
 
r_Bytes offset () const
 retrieve (local) offset
 
void set_offset (r_Bytes newOffset)
 set (local) offset
 
r_Bytes global_offset () const
 retrieve global offset
 
void set_global_offset (r_Bytes newOffset)
 set global offset
 
virtual void print_status (std::ostream &s) const override
 writes state of object to specified stream
 
r_Attribute operator[] (unsigned int number) const
 subscript operator to access attributes of a structured attribute throws error when type is not a struct type
 
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
 
- Public Member Functions inherited from r_Property
 r_Property (const char *newTypeName, const r_Base_Type &newType)
 constructor getting name and type of property.
 
 r_Property (const r_Property &oldObj)
 copy constructor.
 
const r_Propertyoperator= (const r_Property &oldObj)
 assignment operator.
 
 ~r_Property () override
 destructor.
 
const r_Base_Typetype_of () const
 retrieve type of property.
 
- 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

r_Bytes localOffset
 local offset
 
r_Bytes globalOffset
 global offset
 
- Protected Attributes inherited from r_Property
r_Base_TypemyType {NULL}
 
- Protected Attributes inherited from r_Meta_Object
std::string typeName
 

Additional Inherited Members

- Protected Member Functions inherited from r_Property
 r_Property ()=default
 default constructor.
 

Detailed Description

This class represents attributes of structs in the ODMG conformant representation of the RasDaMan type system.

Constructor & Destructor Documentation

◆ r_Attribute() [1/3]

r_Attribute::r_Attribute ( )

default constructor.

initialise important attributes to NULL

◆ r_Attribute() [2/3]

r_Attribute::r_Attribute ( const char *  newTypeName,
const r_Base_Type newType 
)

constructor getting name and type of attribute.

◆ r_Attribute() [3/3]

r_Attribute::r_Attribute ( const r_Attribute oldObj)

copy constructor.

◆ ~r_Attribute()

r_Attribute::~r_Attribute ( )
override

destructor.

Member Function Documentation

◆ get_boolean()

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

◆ get_char()

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

◆ get_double()

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

◆ get_float()

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

◆ get_long()

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

◆ get_octet()

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

◆ get_short()

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

◆ get_ulong()

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

◆ get_ushort()

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

◆ global_offset()

r_Bytes r_Attribute::global_offset ( ) const

retrieve global offset

◆ offset()

r_Bytes r_Attribute::offset ( ) const

retrieve (local) offset

◆ operator=()

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

assignment operator.

◆ operator[]()

r_Attribute r_Attribute::operator[] ( unsigned int  number) const

subscript operator to access attributes of a structured attribute throws error when type is not a struct type

◆ print_status()

virtual void r_Attribute::print_status ( std::ostream &  s) const
overridevirtual

writes state of object to specified stream

Implements r_Meta_Object.

◆ set_global_offset()

void r_Attribute::set_global_offset ( r_Bytes  newOffset)

set global offset

◆ set_offset()

void r_Attribute::set_offset ( r_Bytes  newOffset)

set (local) offset

Member Data Documentation

◆ globalOffset

r_Bytes r_Attribute::globalOffset
protected

global offset

◆ localOffset

r_Bytes r_Attribute::localOffset
protected

local offset


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