|
| | r_Collection () |
| | default constructor More...
|
| |
| | r_Collection (const r_Collection< T > &collection) |
| | copy constructor More...
|
| |
| virtual | ~r_Collection () |
| | virtual destructor More...
|
| |
| virtual void | r_deactivate () |
| | it is called when an object leaves transient memory More...
|
| |
| unsigned long | cardinality () const |
| | get number of elements More...
|
| |
| bool | is_empty () const |
| | tells if the collection is empty or not More...
|
| |
| bool | is_ordered () const |
| | tells if the collection is ordered or not More...
|
| |
| bool | allows_duplicates () const |
| | tells if the collections allowes duplicates or not More...
|
| |
| bool | contains_element (const T &element) const |
| | asks about the containment of a specific element More...
|
| |
| virtual void | insert_element (const T &element, int no_modification=0) |
| | inserts an alement at the beginning More...
|
| |
| virtual void | remove_element (const T &element) |
| | The method inserts an element into the collection. More...
|
| |
| void | remove_all () |
| | removes all elements More...
|
| |
| const r_Collection< T > & | operator= (const r_Collection< T > &collection) |
| | assignment operator More...
|
| |
| r_Iterator< T > | create_iterator () |
| | create an iterator pointing at the first element in the collection More...
|
| |
| const r_Type * | get_element_type_schema () |
| | get base type schema More...
|
| |
| virtual void | insert_obj_into_db () |
| | insert myself into the database More...
|
| |
| virtual void | insert_obj_into_db (const char *) |
| | inserts an object into a specific collection in the database More...
|
| |
| virtual void | update_obj_in_db () |
| | The method has no functionality in this class. More...
|
| |
| | r_Object (r_Transaction *transaction=NULL) |
| | default constructor More...
|
| |
| | r_Object (unsigned short objType, r_Transaction *transaction=NULL) |
| | constructor getting objType More...
|
| |
| | r_Object (const r_Object &, unsigned short objType=0, r_Transaction *transaction=NULL) |
| | objType specifies the type of the object (1=Marray, 2=Collection). More...
|
| |
| virtual | ~r_Object () |
| | objType specifies the type of the object (1=Marray, 2=Collection). More...
|
| |
| void | mark_modified () |
| | mark the object as modified More...
|
| |
| void * | operator new (size_t size) |
| | new operator for transient objects More...
|
| |
| void * | operator new (size_t size, r_Database *database, const char *type_name=0) |
| | new operator for persistent objects More...
|
| |
| void * | operator new (size_t size, const char *type_name) |
| | new operator for transient objects carrying type information More...
|
| |
| void | operator delete (void *obj_ptr) |
| | delete operator More...
|
| |
| void | set_type_by_name (const char *name) |
| | set object type by name More...
|
| |
| void | set_type_structure (const char *name) |
| | With this method a type name has to be given by the user for each object which he wants to make persistent. More...
|
| |
| const char * | get_type_name () const |
| | get object type name More...
|
| |
| const char * | get_type_structure () const |
| | get object type structure More...
|
| |
| const r_OId & | get_oid () const |
| | get oid More...
|
| |
| const r_Type * | get_type_schema () |
| | get type schema. returns NULL in case of error More...
|
| |
| void | set_type_schema (const r_Type *type) |
| |
| virtual void | load_obj_from_db () |
| | load an object from the database More...
|
| |
| void | delete_obj_from_db () |
| | deletes an object from the database More...
|
| |
| void | initialize_oid (const r_OId &initOId) |
| | initialize oid of the object More...
|
| |
| virtual void | r_activate () |
| | it is called when an object comes into transient memory More...
|
| |
| bool | test_status (ObjectStatus status) |
| | test object status returns 1 if it matches More...
|
| |
| ObjectStatus | get_status () const |
| | gets the status of the object More...
|
| |
| void | set_object_name (const char *name) |
| | set object name. object name should contain only [a-zA-Z0-9_] More...
|
| |
| const char * | get_object_name () const |
| | get object name More...
|
| |
| void * | operator new (size_t size, r_Database *database, ObjectStatus status, const r_OId &oid) |
| | new operator for activating an object (status = read) More...
|
| |
| r_Transaction * | get_transaction () const |
| |
template<class T>
class r_Collection< T >
Basic class of a collection.
Possible subclasses are r_Set. The protected members isOrdered and allowsDuplicates are not initialized here, they have to be initialized in the respective subclasses.