 |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
Go to the documentation of this file.
24 #ifndef _D_COLLECTION_
25 #define _D_COLLECTION_
71 virtual void insert_element(
const T &element,
int no_modification = 0);
195 template <
typename T>
unsigned long cardinality() const
get number of elements
Basic class of a collection.
Definition: collection.hh:43
int isOrdered
Definition: collection.hh:140
element type of non r_Object list maintained by the transaction
Definition: genreftype.hh:38
bool contains_element(const T &element) const
asks about the containment of a specific element
void remove_all()
removes all elements
bool remove_node(CNode *&root, const T &element)
virtual void remove_element(const T &element)
The method inserts an element into the collection.
virtual void insert_obj_into_db()
insert myself into the database
void init_node_list(CNode *&root)
The class r_Ref_Any is defined to support a reference to any type.
Definition: ref.hh:64
References of type r_Ref in many respects behave like C++ pointers but provide an additional mechanis...
Definition: collection.hh:196
bool is_ordered() const
tells if the collection is ordered or not
CNode * coll
pointer to collection elements
Definition: collection.hh:187
void add_node(CNode *&root, const T &element)
const r_Collection< T > & operator=(const r_Collection< T > &collection)
assignment operator
CNode * next
Definition: collection.hh:118
void remove_all_nodes(CNode *&root)
virtual void insert_obj_into_db(const char *)
inserts an object into a specific collection in the database
Definition: collection.hh:99
This class the superclass for all types in the ODMG conformant representation of the RasDaMan type sy...
Definition: type.hh:50
bool allows_duplicates() const
tells if the collections allowes duplicates or not
The template class r_Iterator defines the generic behavior for iteration.
Definition: collection.hh:30
const r_Type * get_element_type_schema()
get base type schema
r_Iterator< T > create_iterator()
create an iterator pointing at the first element in the collection
virtual void update_obj_in_db()
The method has no functionality in this class.
Definition: collection.hh:116
int allowsDuplicates
Definition: collection.hh:142
virtual void insert_element(const T &element, int no_modification=0)
inserts an alement at the beginning
r_Collection()
default constructor
Through inheritance of this class, the type definer specifies that the subclass is capable of having ...
Definition: object.hh:61
bool is_empty() const
tells if the collection is empty or not
unsigned long card
Definition: collection.hh:144
The class represents a generic MDD in the sense that it is independent of the cell base type.
Definition: gmarray.hh:65
virtual ~r_Collection()
virtual destructor
T * elem
Definition: collection.hh:119
CNode * removed_objects
pointer to list of removed elements
Definition: collection.hh:131
r_Iterator< T > create_removed_iterator()
create an iterator for removed objects
r_Object(r_Transaction *transaction=NULL)
default constructor
virtual void r_deactivate()
it is called when an object leaves transient memory