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

Public Methods | |
| d_Varray () | |
| T | operator[] (const oUInt4 iIndex) |
| virtual d_Boolean | allows_duplicates () const |
| virtual d_Boolean | is_ordered () const |
| d_Boolean | find_element (const T &iValue, d_ULong &ioPosition) |
| T | retrieve_element_at (const d_ULong iIndex) |
| void | remove_element_at (const d_ULong iPosition) |
| void | replace_element_at (const T &iValue, const d_ULong iPosition) |
| d_Varray (d_Object::DynaFactoryConstructor *iObj) | |
This class is like the vector of the C++ Library, but is persistent.
LOCATION: d_Varray.h
USAGE: d_Varray< <type-name> > <property-name>;
Where:
<type-name>: Type to contain. Can be a literal or a user type <PROPERTY-NAME>: NAME OF PROPERTY
EXAMPLES: class Invoice : public d_Object { * Relationship 1-n to product objects d_Varray< d_Ref<Product> > products; };
d_Ref<Invoice> myInvoice; * Ref to Invoice object
SEE ALSO: d_Bag, d_Collection, d_Dictionary, d_Iterator, d_List, d_Set
ODMG: Compliant
|
|||||||||
|
Default constructor. ODMG : Compliant |
|
||||||||||
|
|
|
|||||||||
|
Returns always true. ODMG : Compliant Implements d_Collection< T >. |
|
||||||||||||||||
|
Search the value in the container. Search the value in the array. If the element is found its position is returned in and the method returns true; otherwise it returns false. ODMG : Compliant |
|
|||||||||
|
Returns always true. ODMG : Compliant Implements d_Collection< T >. |
|
||||||||||
|
Returns the value at any position. Returns the value at position . If is out of the range, an exception d_Error_PositionOutOfRange is raised. This method permits to handle a d_Varray object as a common C++ array. SEE ALSO: retrieve_element_at() ODMG : Compliant |
|
||||||||||
|
Remove an element. Remove the element at position . If is out of the range, an exception d_Error_PositionOutOfRange is raised. SEE ALSO: remove_all(), d_Iterator::remove_element () ODMG : Compliant |
|
||||||||||||||||
|
Replace an element. Replace the element at position with . If is out of the range, an exception d_Error_PositionOutOfRange is raised. SEE ALSO: d_Iterator::replace_element () ODMG : Compliant |
|
||||||||||
|
Returns the value at any position. Returns the value at position . If is out of the range, an exception d_Error_PositionOutOfRange is raised. SEE ALSO: operator[]() ODMG : Compliant |
1.3-rc1