ADTF
3.18.4
|
Utility class to store DDL elements that can be cloned. More...
Public Member Functions | |
cDDLContainer (bool bSorted=true) | |
Constructor. More... | |
void | CloneFrom (const cDDLContainer &oOther) |
Clones all elements of a given container. More... | |
Public Member Functions inherited from cDDLContainerNoClone< T > | |
cDDLContainerNoClone (bool bSorted=true) | |
Constructor. More... | |
void | Insert (T *pElem, int nPos=-1) |
Insert. More... | |
T * | Find (const A_UTILS_NS::cString &strName) |
Finds an element by name. More... | |
iterator | FindIt (const A_UTILS_NS::cString &strName) |
Finds an element by name. More... | |
const T * | Find (const A_UTILS_NS::cString &strName) const |
Finds an element by name. More... | |
void | CopyFromRef (cDDLContainerNoClone &oOther) |
Copies the pointers from the other container. More... | |
void | Delete () |
Deletes all stored items (by calling delete on the pointers) | |
void | Sort () |
Sort the items by name. | |
bool | IsSorted () const |
Returns Whether or not the container is sorted by name or not. More... | |
iterator | begin () |
Returns an iterator to the first element. More... | |
const_iterator | begin () const |
Returns an iterator to the first element. More... | |
iterator | end () |
Returns an iterator to the element after the last element. More... | |
const_iterator | end () const |
Returns an iterator to the element after the last element. More... | |
void | clear () |
clears the container (does not destroy the elements) | |
iterator | erase (iterator itPos) |
removes an element from the container More... | |
iterator | erase (iterator itPosFirst, iterator itPosLast) |
removes a sequence of elements from the container More... | |
bool | empty () const |
Returns whether the container is empty or not. More... | |
unsigned int | size () const |
Returns the size of the container. More... | |
T *& | operator[] (unsigned int nPos) |
random access operator. More... | |
T *const & | operator[] (unsigned int nPos) const |
random access operator. More... | |
T *& | at (unsigned int nPos) |
random access method. More... | |
T *const & | at (unsigned int nPos) const |
random access method. More... | |
Additional Inherited Members | |
Public Types inherited from cDDLContainerNoClone< T > | |
typedef T ** | iterator |
iterator for DDL container | |
typedef T *const * | const_iterator |
const iterator for DDL container | |
Utility class to store DDL elements that can be cloned.
Definition at line 184 of file ddlcontainer.h.
cDDLContainer | ( | bool | bSorted = true | ) |
Constructor.
[in] | bSorted | Whether the container shall be sorted by name or not. |
void CloneFrom | ( | const cDDLContainer< T > & | oOther | ) |
Clones all elements of a given container.
[in] | oOther | the container that should be cloned. |