23 #ifndef D_STRUCTURE_HH
24 #define D_STRUCTURE_HH
84 char *valueBuffer{NULL};
87 unsigned int numElements{};
Class r_Scalar represents a scalar type value which is either r_Primitive or r_Structure.
Definition: scalar.hh:43
This class represents all user defined structured types in the ODMG conformant representation of the ...
Definition: structuretype.hh:41
Class r_Structure represents a structured value.
Definition: structure.hh:42
r_Structure(const r_Structure &obj)
copy constructor
r_Scalar * clone() const override
clone operator
void print_status(std::ostream &s) const override
debug output
const r_Structure & operator=(const r_Structure &)
operator for assigning a structure
const char * get_buffer() const
get buffer
r_Structure(const char *newBuffer, const r_Structure_Type *newType)
constructs a structured type value
const r_Scalar & operator[](unsigned int) const
access an element by number throws TypeInvalid and NameInvalid
bool isStructure() const override
returns true to indicate that this is a structured value
const r_Scalar & operator[](const char *name) const
access an element by name throws TypeInvalid and r_Eindex_violation
unsigned int count_elements() const
get number of elements
~r_Structure() override
destructor
std::ostream & operator<<(std::ostream &s, const r_Structure &oid)
Output stream operator for objects of type const r_Structure.