COVISE Core
|
#include <coDLList.h>
Public Member Functions | |
coDLPtrList (bool doDelete=true) | |
void | setNullElem (const T &nullElem) |
set the return value for 'current' in case of NO-return More... | |
void | setNoDelete (bool doDelete=false) |
virtual void | remove (coDLListElem< T > *whichElem) |
remove specific item from list: delete if doDelete=true More... | |
virtual void | clean () |
cleanup everything More... | |
virtual | ~coDLPtrList () |
destructor: delete elements if doDelete=true More... | |
coDLPtrList< T > & | append (const T &a) |
append an element More... | |
void | remove () |
remove current item from list: obsolete, use iterators More... | |
T | current (void) |
access 'current' item: obsolete, use iterators More... | |
T | get (void) |
just return last item, do not change current: obsolete, use iterators More... | |
coDLPtrList< T > & | set (int) |
move the current to the Nth item: obsolete, use iterators More... | |
int | find (const T &) |
coDLList< T > & | reset (void) |
reset current to the beginning of the list: obsolete, use iterators More... | |
coDLList< T > & | next (void) |
move the current to next item in list: obsolete, use iterators More... | |
Public Member Functions inherited from covise::coDLList< T > | |
coDLList (void) | |
constructor: construct empty list More... | |
virtual | ~coDLList (void) |
destructor : virtual for all derived classes More... | |
int | num (void) const |
number of items in this list More... | |
operator bool () | |
are there elements in my list ? More... | |
coDLList< T > & | append (const T &) |
add new item to end of list More... | |
T | item (int) |
return the Nth item: prefer usage of [] or iterator More... | |
T & | operator[] (int) |
return the Nth item More... | |
const T & | operator[] (int) const |
return the Nth item, const version More... | |
coDLListIter< T > | first () |
get an Iterator placed on the first element More... | |
coDLListIter< T > | last () |
get an Iterator placed on the last element More... | |
coDLListIter< T > | findElem (const T &) |
get an Iterator placed to specific element More... | |
coDLListIter< T > | findElem (const T &, const coDLListCompare< T > &comp) |
get an Iterator placed to specific element with compare-object More... | |
coDLListIter< T > | findElem (int i) |
get an Iterator placed to specific element number More... | |
coDLListElem< T > * | getHeadStruct () |
get the head ot the chain: primarily used for defining own iterators More... | |
coDLListElem< T > * | getTailStruct () |
get the tail ot the chain: primarily used for defining own iterators More... | |
Private Attributes | |
bool | d_doDelete |
coDLListElem< T > * | curr |
T | d_nullElem |
Additional Inherited Members | |
Protected Member Functions inherited from covise::coDLList< T > | |
void | addIter (coDLListSafeIter< T > *iter) |
void | removeIter (coDLListSafeIter< T > *iter) |
void | invalidateIterators (void) |
void | correctIteratorsFor (coDLListElem< T > *whichElem) |
Protected Attributes inherited from covise::coDLList< T > | |
coDLListElem< T > * | head |
coDLListElem< T > * | tail |
int | listItems |
std::list< coDLListSafeIter< T > * > | m_iterators |
List of pointers to class T with possible deleting on remove/deconstruct
|
inline |
construct empty list, delete by default
doDelete | flag whether to delete, default=true |
|
inlinevirtual |
destructor: delete elements if doDelete=true
INLINE coDLPtrList< T > & covise::coDLPtrList< T >::append | ( | const T & | a | ) |
append an element
|
virtual |
cleanup everything
Reimplemented from covise::coDLList< T >.
INLINE T covise::coDLPtrList< T >::current | ( | void | ) |
access 'current' item: obsolete, use iterators
INLINE int covise::coDLPtrList< T >::find | ( | const T & | a | ) |
move the current item pointer to the item which matches the given one return TRUE if found, or FALSE otherwise: obsolete, use iterators
|
inline |
just return last item, do not change current: obsolete, use iterators
return the current item and move current to the nextobsolete, use iterator
|
inline |
move the current to next item in list: obsolete, use iterators
|
virtual |
remove specific item from list: delete if doDelete=true
Reimplemented from covise::coDLList< T >.
|
inline |
remove current item from list: obsolete, use iterators
|
inline |
reset current to the beginning of the list: obsolete, use iterators
INLINE coDLPtrList< T > & covise::coDLPtrList< T >::set | ( | int | N | ) |
move the current to the Nth item: obsolete, use iterators
|
inline |
set to no deletion:
noDelete | flag whether to delete, default=false |
|
inline |
set the return value for 'current' in case of NO-return
|
private |
|
private |
|
private |