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

Class r_Structure represents a structured value. More...

#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...
 
 ~r_Structure () override
 destructor More...
 
r_Scalarclone () const override
 clone operator More...
 
const r_Structureoperator= (const r_Structure &)
 operator for assigning a structure More...
 
void print_status (std::ostream &s) const override
 debug output More...
 
bool isStructure () const override
 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
 access an element by name throws TypeInvalid and r_Eindex_violation More...
 
const r_Scalaroperator[] (unsigned int) const
 access an element by number throws TypeInvalid and NameInvalid More...
 
- 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 isComplex () const
 
virtual bool isPrimitive () const
 

Additional Inherited Members

- Protected Attributes inherited from r_Scalar
r_Base_TypevalueType {NULL}
 

Detailed Description

Class r_Structure represents a structured value.

Constructor & Destructor Documentation

◆ r_Structure() [1/2]

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

constructs a structured type value

◆ r_Structure() [2/2]

r_Structure::r_Structure ( const r_Structure obj)

copy constructor

◆ ~r_Structure()

r_Structure::~r_Structure ( )
override

destructor

Member Function Documentation

◆ clone()

r_Scalar* r_Structure::clone ( ) const
overridevirtual

clone operator

Implements r_Scalar.

◆ count_elements()

unsigned int r_Structure::count_elements ( ) const

get number of elements

◆ get_buffer()

const char* r_Structure::get_buffer ( ) const

get buffer

◆ isStructure()

bool r_Structure::isStructure ( ) const
overridevirtual

returns true to indicate that this is a structured value

Reimplemented from r_Scalar.

◆ operator=()

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

operator for assigning a structure

◆ operator[]() [1/2]

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

access an element by name throws TypeInvalid and r_Eindex_violation

◆ operator[]() [2/2]

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

access an element by number throws TypeInvalid and NameInvalid

◆ print_status()

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

debug output

Implements r_Scalar.


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