rasdaman complete source
Public Member Functions | List of all members
r_Primitive Class Reference

#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)
 constructs a scalar type value More...
 
 r_Primitive (const r_Primitive &obj)
 copy constructor More...
 
 ~r_Primitive ()
 destructor More...
 
virtual r_Scalarclone () const
 clone operator More...
 
virtual const r_Primitiveoperator= (const r_Primitive &)
 operator for assigning a primitive More...
 
const char * get_buffer () const
 gets the pointer to the buffer More...
 
virtual void print_status (std::ostream &s) const
 debug output More...
 
virtual bool isPrimitive () const
 
r_Boolean get_boolean () const throw ( r_Error )
 
r_Char get_char () const throw ( r_Error )
 
r_Octet get_octet () const throw ( r_Error )
 
r_Short get_short () const throw ( r_Error )
 
r_UShort get_ushort () const throw ( r_Error )
 
r_Long get_long () const throw ( r_Error )
 
r_ULong get_ulong () const throw ( r_Error )
 
r_Float get_float () const throw ( r_Error )
 
r_Double get_double () const throw ( r_Error )
 
void set_boolean (r_Boolean) throw ( r_Error )
 
void set_char (r_Char) throw ( r_Error )
 
void set_octet (r_Octet) throw ( r_Error )
 
void set_short (r_Short) throw ( r_Error )
 
void set_ushort (r_UShort) throw ( r_Error )
 
void set_long (r_Long) throw ( r_Error )
 
void set_ulong (r_ULong) throw ( r_Error )
 
void set_float (r_Float) throw ( r_Error )
 
void set_double (r_Double) throw ( r_Error )
 
- Public Member Functions inherited from r_Scalar
 r_Scalar (const r_Base_Type *newType)
 constructs a scalar value More...
 
 r_Scalar (const r_Scalar &obj)
 copy constructor More...
 
virtual ~r_Scalar ()
 destructor More...
 
virtual const r_Scalaroperator= (const r_Scalar &)
 operator for assigning a scalar More...
 
virtual const r_Base_Typeget_type () const
 get type More...
 
virtual bool isStructure () const
 
virtual bool isComplex () const
 

Additional Inherited Members

- Protected Attributes inherited from r_Scalar
r_Base_TypevalueType
 type More...
 

Constructor & Destructor Documentation

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

constructs a scalar type value

r_Primitive::r_Primitive ( const r_Primitive obj)

copy constructor

r_Primitive::~r_Primitive ( )

destructor

Member Function Documentation

virtual r_Scalar* r_Primitive::clone ( ) const
virtual

clone operator

Implements r_Scalar.

Reimplemented in r_Complex.

r_Boolean r_Primitive::get_boolean ( ) const
throw (r_Error
)
const char* r_Primitive::get_buffer ( ) const

gets the pointer to the buffer

r_Char r_Primitive::get_char ( ) const
throw (r_Error
)
r_Double r_Primitive::get_double ( ) const
throw (r_Error
)
r_Float r_Primitive::get_float ( ) const
throw (r_Error
)
r_Long r_Primitive::get_long ( ) const
throw (r_Error
)
r_Octet r_Primitive::get_octet ( ) const
throw (r_Error
)
r_Short r_Primitive::get_short ( ) const
throw (r_Error
)
r_ULong r_Primitive::get_ulong ( ) const
throw (r_Error
)
r_UShort r_Primitive::get_ushort ( ) const
throw (r_Error
)
virtual bool r_Primitive::isPrimitive ( ) const
virtual

Reimplemented from r_Scalar.

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

operator for assigning a primitive

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

debug output

Implements r_Scalar.

void r_Primitive::set_boolean ( r_Boolean  )
throw (r_Error
)
void r_Primitive::set_char ( r_Char  )
throw (r_Error
)
void r_Primitive::set_double ( r_Double  )
throw (r_Error
)
void r_Primitive::set_float ( r_Float  )
throw (r_Error
)
void r_Primitive::set_long ( r_Long  )
throw (r_Error
)
void r_Primitive::set_octet ( r_Octet  )
throw (r_Error
)
void r_Primitive::set_short ( r_Short  )
throw (r_Error
)
void r_Primitive::set_ulong ( r_ULong  )
throw (r_Error
)
void r_Primitive::set_ushort ( r_UShort  )
throw (r_Error
)

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