COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Friends | List of all members
covise::coDLListSafeIter< T > Class Template Reference

#include <coDLList.h>

Inheritance diagram for covise::coDLListSafeIter< T >:
Inheritance graph
[legend]
Collaboration diagram for covise::coDLListSafeIter< T >:
Collaboration graph
[legend]

Public Member Functions

 coDLListSafeIter ()
 create empty iterator More...
 
 coDLListSafeIter (coDLList< T > &list)
 create from a given List More...
 
coDLListSafeIter< T > & operator= (const coDLListSafeIter< T > &old)
 standard assignment operator More...
 
 coDLListSafeIter (const coDLListSafeIter< T > &old)
 standard copy-Constructor More...
 
 coDLListSafeIter (coDLList< T > &list, coDLListElem< T > *actElem)
 create from a given List + Pointer More...
 
virtual ~coDLListSafeIter ()
 Destructor. More...
 
virtual void remove ()
 delete my element: iter is moved to next element if it exists by coDLList::remove()) More...
 
- Public Member Functions inherited from covise::coDLListIter< T >
 coDLListIter ()
 create empty iterator More...
 
 coDLListIter (coDLList< T > &list)
 create from a given List: set to first element More...
 
coDLListIter< T > & operator= (const coDLListIter< T > &old)
 standard assignment operator More...
 
 coDLListIter (const coDLListIter< T > &old)
 standard copy-Constructor More...
 
 coDLListIter (coDLList< T > &list, coDLListElem< T > *actElem)
 create from a given List + Pointer More...
 
virtual ~coDLListIter ()
 Destructor. More...
 
 operator bool ()
 check wether we point to an existing element: if (iter) ... More...
 
void operator++ ()
 go to next element : ++iter More...
 
void operator++ (int)
 go to next element : iter++ More...
 
void operator-- ()
 go to previous element : –iter More...
 
void operator-- (int)
 go to previous element : iter– More...
 
T & operator() ()
 access object with iter(): if (iter)=false: whatever might be in More...
 
T & operator* ()
 access object with (*iter) More...
 
operator-> ()
 access object with iter->something: only if T is a pointer More...
 
void setFirst ()
 set to first element More...
 
void setLast ()
 set to last element More...
 
coDLListIter< T > & insertAfter (const T &newElem)
 add new element after my position More...
 
coDLListIter< T > & insertBefore (const T &newElem)
 add new element after my position More...
 
void operator= (const T &elem)
 set to specific element More...
 
void operator= (int num)
 set to element # if existent More...
 

Friends

class coDLList< T >
 

Additional Inherited Members

- Protected Member Functions inherited from covise::coDLListIter< T >
virtual void advance ()
 
virtual void backstep ()
 
virtual void nextValid ()
 
virtual void prevValid ()
 
- Protected Attributes inherited from covise::coDLListIter< T >
coDLList< T > * d_myList
 
coDLListElem< T > * d_actElem
 

Constructor & Destructor Documentation

template<class T>
covise::coDLListSafeIter< T >::coDLListSafeIter ( )
inline

create empty iterator

template<class T>
covise::coDLListSafeIter< T >::coDLListSafeIter ( coDLList< T > &  list)
inline

create from a given List

template<class T>
covise::coDLListSafeIter< T >::coDLListSafeIter ( const coDLListSafeIter< T > &  old)
inline

standard copy-Constructor

template<class T>
covise::coDLListSafeIter< T >::coDLListSafeIter ( coDLList< T > &  list,
coDLListElem< T > *  actElem 
)
inline

create from a given List + Pointer

template<class T>
virtual covise::coDLListSafeIter< T >::~coDLListSafeIter ( )
inlinevirtual

Destructor.

Member Function Documentation

template<class T>
coDLListSafeIter<T>& covise::coDLListSafeIter< T >::operator= ( const coDLListSafeIter< T > &  old)
inline

standard assignment operator

template<class T>
virtual void covise::coDLListSafeIter< T >::remove ( )
inlinevirtual

delete my element: iter is moved to next element if it exists by coDLList::remove())

Reimplemented from covise::coDLListIter< T >.

Friends And Related Function Documentation

template<class T>
friend class coDLList< T >
friend

The documentation for this class was generated from the following file: