ZeusBase-Library
2.0.4
|
#include <ValueTypeList.hpp>
Public Member Functions | |
virtual | ~TValueTypeList () |
Destructor (avoids waring C4265) More... | |
virtual Int MQUALIFIER | add (const I &rItem) |
virtual Int MQUALIFIER | addAll (const IList< I > &rlstItems) |
virtual Int MQUALIFIER | addEmptyItem () |
virtual void MQUALIFIER | copyToList (IList< I > &rList) const |
virtual void MQUALIFIER | clear () |
virtual Retval MQUALIFIER | deleteItem (Int iIndex) |
virtual Retval MQUALIFIER | remove (const I &rItem) |
virtual Retval MQUALIFIER | removeAll (const IList< I > &rlstItems) |
virtual Int MQUALIFIER | getCount () const |
virtual I &MQUALIFIER | getItem (Int iIndex) |
virtual const I &MQUALIFIER | getItemConst (Int iIndex) const |
virtual Int MQUALIFIER | indexOf (const I &rItem) const |
virtual Int MQUALIFIER | insert (Int iIndex, const I &rItem) |
virtual bool MQUALIFIER | equalsItem (Int iIndex, const I &rItem) const |
virtual bool MQUALIFIER | equals (const IList< I > &rList) const |
virtual IListIterator< I > *MQUALIFIER | getIterator () const |
virtual const IListIterator< I > *MQUALIFIER | getConstIterator () const |
virtual void MQUALIFIER | releaseIterator (const IListIterator< I > *pIterator) const |
virtual bool MQUALIFIER | isEmpty () const |
virtual I &MQUALIFIER | getFirstItem () |
virtual const I &MQUALIFIER | getFirstItemConst () const |
virtual I &MQUALIFIER | getLastItem () |
virtual const I &MQUALIFIER | getLastItemConst () const |
virtual bool MQUALIFIER | hasItem (const I &rItem) const |
virtual bool MQUALIFIER | hasAllItems (const IList< I > &rlstItems) const |
T & | operator[] (Int iIndex) |
const T & | operator[] (Int iIndex) const |
Protected Attributes | |
TSingleLinkedList< T > | m_lstData |
internal list containing the data More... | |
template class implements a list based on a class "T". The class "T" implements the interface "I". This is put together to the list of "T" implementing the IList of "I"
|
inlinevirtual |
Destructor (avoids waring C4265)
|
inlinevirtual |
Adds an element to the list.
rItem | : Item to add |
Implements zeus::IList< I >.
|
virtual |
Implements zeus::IList< I >.
|
inlinevirtual |
|
inlinevirtual |
Clears the list. All elements are removed from the list
Implements zeus::IList< I >.
|
virtual |
Implements zeus::IList< I >.
|
inlinevirtual |
Removes an element out of the list
iIndex | : Index of the element to remove |
RET_NOERROR | : Element removed |
RET_REQUEST_FAILED | Could not remove element |
Implements zeus::IList< I >.
|
virtual |
Implements zeus::IList< I >.
|
inlinevirtual |
This method checks if an item is equal to an item inside this list
iIndex | : Index of the item to be checked |
rItem | : Item to check |
true | : Item is equal |
false | Item is not equal |
Implements zeus::IList< I >.
|
inlinevirtual |
Returns the const iterator of this list object. This iterator is used to traverse the list. The iterator will be allocated inside this method and must be released through the method releaseIterator(). Its possible to use the method as nested calls. The order of the releasing doesn't has to mach the getIterator() calls.
Implements zeus::IList< I >.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
returns the first item of the list. The return value is const.
Implements zeus::IList< I >.
|
inlinevirtual |
Returns the indexed item at position iIndex
iIndex | : Index of requested item |
Empty | element : Could not find the item at iIndex |
Element[iIndex] | : item at [iIndex] |
Implements zeus::IList< I >.
|
inlinevirtual |
Returns the indexed item at position iIndex. The return value is const.
Implements zeus::IList< I >.
|
inlinevirtual |
Returns the iterator of this list object. This iterator is used to traverse the list. The iterator will be allocated inside this method and must be released through the method releaseIterator(). Its possible to use the method as nested calls. The order of the releasing doesn't has to mach the getIterator() calls.
Implements zeus::IList< I >.
|
inlinevirtual |
|
inlinevirtual |
returns the last item of the list. The return value is const.
Implements zeus::IList< I >.
|
virtual |
Implements zeus::IList< I >.
|
inlinevirtual |
checks if the list contains an item
rItem | item to check |
true | : item is included by the list |
false | item is not included by the list |
Implements zeus::IList< I >.
|
inlinevirtual |
returns the index of an item.
rItem | : Item to check |
INVALID_INDEX | : Item is not inserted in this list |
>= | 0: Index of the item |
Implements zeus::IList< I >.
|
inlinevirtual |
Inserts an item into the list at position iIndex.
rItem | : Item to insert |
iIndex | : insert position |
INVALID_INDEX | : Could not insert the element (invalid insert position) |
>= | 0: Item inserted. The return value is the insert position |
Implements zeus::IList< I >.
|
inlinevirtual |
Checks if the list is empty
true | : List is empty |
false | : List is not empty |
Implements zeus::IList< I >.
|
inline |
|
inline |
|
inlinevirtual |
This method releases a iterator object. This must be called after a call of getIterator(), otherwise it will cause a memory leak.
pIterator | : Iterator to release. |
Implements zeus::IList< I >.
|
inlinevirtual |
Removes the element rItem out of the list.
rItem | : Element to remove |
RET_NOERROR | : Element removed |
RET_REQUEST_FAILED | Could not remove element |
Implements zeus::IList< I >.
|
virtual |
Implements zeus::IList< I >.
|
protected |
internal list containing the data