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 Class Reference

Class r_Primitive represents a primitive (atomic) type value. More...

#include <primitive.hh>

Inheritance diagram for r_Primitive:
r_Scalar r_Complex

Public Member Functions

 r_Primitive (const char *newBuffer, const r_Primitive_Type *newType)
 
 r_Primitive (const r_Primitive &obj)
 
 ~r_Primitive () override
 
r_Scalarclone () const override
 clone operator More...
 
const r_Primitiveoperator= (const r_Primitive &)
 operator for assigning a primitive More...
 
const char * get_buffer () const
 gets the pointer to the buffer More...
 
void print_status (std::ostream &s) const override
 debug output More...
 
bool isPrimitive () const override
 
r_Boolean get_boolean () const
 
r_Char get_char () const
 
r_Octet get_octet () const
 
r_Short get_short () const
 
r_UShort get_ushort () const
 
r_Long get_long () const
 
r_ULong get_ulong () const
 
r_Float get_float () const
 
r_Double get_double () const
 
void set_boolean (r_Boolean)
 
void set_char (r_Char)
 
void set_octet (r_Octet)
 
void set_short (r_Short)
 
void set_ushort (r_UShort)
 
void set_long (r_Long)
 
void set_ulong (r_ULong)
 
void set_float (r_Float)
 
void set_double (r_Double)
 
- Public Member Functions inherited from r_Scalar
 r_Scalar (const r_Base_Type *newType)
 
 r_Scalar (const r_Scalar &obj)
 
virtual ~r_Scalar ()
 
const r_Scalaroperator= (const r_Scalar &)
 
virtual const r_Base_Typeget_type () const
 
virtual bool isStructure () const
 
virtual bool isComplex () const
 

Protected Member Functions

void checkBufferAndType () const
 
void checkBufferAndType (r_Type::r_Type_Id type)
 

Protected Attributes

char * valueBuffer {NULL}
 buffer More...
 
- Protected Attributes inherited from r_Scalar
r_Base_TypevalueType {NULL}
 

Detailed Description

Class r_Primitive represents a primitive (atomic) type value.

Constructor & Destructor Documentation

◆ r_Primitive() [1/2]

r_Primitive::r_Primitive ( const char *  newBuffer,
const r_Primitive_Type newType 
)

◆ r_Primitive() [2/2]

r_Primitive::r_Primitive ( const r_Primitive obj)

◆ ~r_Primitive()

r_Primitive::~r_Primitive ( )
override

Member Function Documentation

◆ checkBufferAndType() [1/2]

void r_Primitive::checkBufferAndType ( ) const
protected

◆ checkBufferAndType() [2/2]

void r_Primitive::checkBufferAndType ( r_Type::r_Type_Id  type)
protected

◆ clone()

r_Scalar* r_Primitive::clone ( ) const
overridevirtual

clone operator

Implements r_Scalar.

◆ get_boolean()

r_Boolean r_Primitive::get_boolean ( ) const

◆ get_buffer()

const char* r_Primitive::get_buffer ( ) const

gets the pointer to the buffer

◆ get_char()

r_Char r_Primitive::get_char ( ) const

◆ get_double()

r_Double r_Primitive::get_double ( ) const

◆ get_float()

r_Float r_Primitive::get_float ( ) const

◆ get_long()

r_Long r_Primitive::get_long ( ) const

◆ get_octet()

r_Octet r_Primitive::get_octet ( ) const

◆ get_short()

r_Short r_Primitive::get_short ( ) const

◆ get_ulong()

r_ULong r_Primitive::get_ulong ( ) const

◆ get_ushort()

r_UShort r_Primitive::get_ushort ( ) const

◆ isPrimitive()

bool r_Primitive::isPrimitive ( ) const
overridevirtual

Reimplemented from r_Scalar.

◆ operator=()

const r_Primitive& r_Primitive::operator= ( const r_Primitive )

operator for assigning a primitive

◆ print_status()

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

debug output

Implements r_Scalar.

◆ set_boolean()

void r_Primitive::set_boolean ( r_Boolean  )

◆ set_char()

void r_Primitive::set_char ( r_Char  )

◆ set_double()

void r_Primitive::set_double ( r_Double  )

◆ set_float()

void r_Primitive::set_float ( r_Float  )

◆ set_long()

void r_Primitive::set_long ( r_Long  )

◆ set_octet()

void r_Primitive::set_octet ( r_Octet  )

◆ set_short()

void r_Primitive::set_short ( r_Short  )

◆ set_ulong()

void r_Primitive::set_ulong ( r_ULong  )

◆ set_ushort()

void r_Primitive::set_ushort ( r_UShort  )

Member Data Documentation

◆ valueBuffer

char* r_Primitive::valueBuffer {NULL}
protected

buffer


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