85 virtual
void insert_element( const T& element,
int no_modification = 0 );
97 const r_Collection<T>& operator=( const r_Collection<T>& collection );
113 virtual
void insert_obj_into_db( const
char* )
203 void add_node( CNode* &root,
const T& element );
218 #include "rasodmg/collection.icc"
220 #ifdef EARLY_TEMPLATE
221 #ifdef __EXECUTABLE__
223 #include "collection.cpp"
225 #include "collection.cc"
T * elem
Definition: collection.hh:147
r_Iterator< T > create_iterator()
create an iterator pointing at the first element in the collection
virtual void r_deactivate()
it is called when an object leaves transient memory
void remove_all_nodes(CNode *&root)
Definition: collection.hh:40
Definition: raslib/type.hh:56
int is_empty() const
tells if the collection is empty or not
void set_internal_representation(const void *node1)
int allows_duplicates() const
tells if the collections allowes duplicates or not
CNode * coll
pointer to collection elements
Definition: collection.hh:215
virtual void insert_element(const T &element, int no_modification=0)
inserts an alement at the beginning
void * get_internal_representation() const
virtual void insert_obj_into_db()
insert myself into the database
Definition: collection.hh:144
int is_ordered() const
tells if the collection is ordered or not
Definition: collection.hh:57
CNode * next
Definition: collection.hh:146
unsigned long cardinality() const
get number of elements
void init_node_list(CNode *&root)
int remove_node(CNode *&root, const T &element)
const r_Type * get_element_type_schema()
get base type schema
virtual void remove_element(const T &element)
removes an element
r_Collection()
default constructor
int contains_element(const T &element) const
asks about the containment of a specific element
virtual void update_obj_in_db()
update myself
int allowsDuplicates
Definition: collection.hh:170
unsigned long card
Definition: collection.hh:172
CNode * removed_objects
pointer to list of removed elements
Definition: collection.hh:159
void remove_all()
removes all elements
void add_node(CNode *&root, const T &element)
r_Iterator< T > create_removed_iterator()
create an iterator for removed objects
int isOrdered
Definition: collection.hh:168