#include <d_Collection.h>
Inheritance diagram for d_Collection< T >:

Public Methods | |
| d_Collection (oUInt2 iBlockSize=dBlockSize) | |
| virtual | ~d_Collection () |
| virtual void | d_deactivate () |
| void | insert_element (const T &iElem) |
| d_Iterator< T > | create_iterator () const |
| d_Iterator< T > | begin () const |
| d_Iterator< T > | end () const |
| void | remove_all () |
| d_ULong | cardinality () const |
| virtual d_Boolean | allows_duplicates () const=0 |
| virtual d_Boolean | is_ordered () const=0 |
| d_Boolean | is_empty () const |
Public Attributes | |
| oUInt2 | blockSize |
| d_Ref< oCollBlock< T > > | head |
| d_Ref< oCollBlock< T > > | tail |
Protected Attributes | |
| oUInt2 | blocks |
| oUInt4 | total |
| oDynaObject * | dynaObject |
Thus you can't use this class directly, but use real container classes.
SEE ALSO: d_Bag, d_Dictionary, d_Iterator, d_List, d_Set, d_Varray
ODMG: Compliant
|
||||||||||
|
Default constructor. is the optional preallocated size (default is 64 elements). ODMG : Compliant |
|
|||||||||
|
Destructor. ODMG : Compliant |
|
|||||||||
|
Implemented in d_Dictionary< K, V >, d_List< T >, d_Set< T >, d_Varray< T >, and d_Dictionary< d_String, d_String >. |
|
|||||||||
|
Returns an iterator that points to the first element. Permits to handle the container by STL classes. SEE ALSO: create_iterator() ODMG : Compliant |
|
|||||||||
|
Returns the number of elements in the collection. ODMG : Compliant |
|
|||||||||
|
Returns an iterator that points to the first element. SEE ALSO: begin() ODMG : Compliant |
|
|||||||||
|
Object deactivation trigger. It's the trigger called asynchronously by Orient ODBMS when the object is freed in memory. It can be defined as a special "cache destructor". It's useful when an object had to free some memory (transient members) before to die. If the user class, inherited by d_Object, doesn't define a own d_deactivate virtual method, by default is called the d_Object::d_deactivate() that doesn't execute any operation. SEE ALSO: d_activate() ODMG : Compliant Reimplemented from d_Object. |
|
|||||||||
|
Returns an iterator that points to the last element. Permits to handle the container by STL classes. SEE ALSO: begin() ODMG : Compliant |
|
||||||||||
|
Insert an element. ODMG : Compliant |
|
|||||||||
|
Returns true if the collection doesn't contain elements, otherwise true. ODMG : Compliant |
|
|||||||||
|
Implemented in d_Dictionary< K, V >, d_List< T >, d_Set< T >, d_Varray< T >, and d_Dictionary< d_String, d_String >. |
|
|||||||||
|
Remove all the elements in the collection. ODMG : Compliant |
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.3-rc1