rasdaman API
|
#include <structure.hh>
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_Scalar * | clone () const |
clone operator More... | |
virtual const r_Structure & | operator= (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_Scalar & | operator[] (const char *name) const throw ( r_Error ) |
const r_Scalar & | operator[] (unsigned int) const throw ( r_Error ) |
![]() | |
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_Scalar & | operator= (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 | |
![]() | |
r_Base_Type * | valueType |
type More... | |
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 |
destructor
unsigned int r_Structure::count_elements | ( | ) | const |
get number of elements
const char* r_Structure::get_buffer | ( | ) | const |
get buffer
|
virtual |
returns true to indicate that this is a structured value
Reimplemented from r_Scalar.
|
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 |
debug output
Implements r_Scalar.