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

#include <structure.hh>

Inheritance diagram for r_Structure:
r_Scalar

Public Member Functions

 r_Structure (const char *newBuffer, const r_Structure_Type *newType)
 constructs a structured type value More...
 
 r_Structure (const r_Structure &obj)
 copy constructor More...
 
virtual ~r_Structure ()
 destructor More...
 
virtual r_Scalarclone () const
 clone operator More...
 
virtual const r_Structureoperator= (const r_Structure &)
 operator for assigning a structure More...
 
virtual void print_status (std::ostream &s) const
 debug output More...
 
virtual bool isStructure () const
 returns true to indicate that this is a structured value More...
 
unsigned int count_elements () const
 get number of elements More...
 
const char * get_buffer () const
 get buffer More...
 
const r_Scalaroperator[] (const char *name) const throw ( r_Error )
 
const r_Scalaroperator[] (unsigned int) const 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_Type * get_type () const
 get type More...
 
virtual bool isComplex () const
 
virtual bool isPrimitive () const
 

Additional Inherited Members

- Protected Attributes inherited from r_Scalar
r_Base_Type * valueType
 type More...
 

Constructor & Destructor Documentation

r_Structure::r_Structure ( const char *  newBuffer,
const r_Structure_Type newType 
)

constructs a structured type value

r_Structure::r_Structure ( const r_Structure obj)

copy constructor

virtual r_Structure::~r_Structure ( )
virtual

destructor

Member Function Documentation

virtual r_Scalar* r_Structure::clone ( ) const
virtual

clone operator

Implements r_Scalar.

unsigned int r_Structure::count_elements ( ) const

get number of elements

const char* r_Structure::get_buffer ( ) const

get buffer

virtual bool r_Structure::isStructure ( ) const
virtual

returns true to indicate that this is a structured value

Reimplemented from r_Scalar.

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

operator for assigning a structure

const r_Scalar& r_Structure::operator[] ( const char *  name) const
throw (r_Error
)

access an element by name throws TypeInvalid and r_Eindex_violation

const r_Scalar& r_Structure::operator[] ( unsigned  int) const
throw (r_Error
)

access an element by number throws TypeInvalid and NameInvalid

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

debug output

Implements r_Scalar.


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