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

#include <coDLList.h>

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

Public Member Functions

 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...
 
virtual void remove ()
 delete my element: iter moves to element behind if existent More...
 
void operator= (const T &elem)
 set to specific element More...
 
void operator= (int num)
 set to element # if existent More...
 

Protected Member Functions

virtual void advance ()
 
virtual void backstep ()
 
virtual void nextValid ()
 
virtual void prevValid ()
 

Protected Attributes

coDLList< T > * d_myList
 
coDLListElem< T > * d_actElem
 

Detailed Description

template<class T>
class covise::coDLListIter< T >

Iterator working on coDLList class: make coDLList work multiple-call-safe

Author
Andreas Werner, 23.03.1999
See Also
coDLList
coDLListIter
coDLPtrList

Constructor & Destructor Documentation

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

create empty iterator

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

create from a given List: set to first element

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

standard copy-Constructor

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

create from a given List + Pointer

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

Destructor.

Member Function Documentation

template<class T>
virtual void covise::coDLListIter< T >::advance ( )
inlineprotectedvirtual
template<class T>
virtual void covise::coDLListIter< T >::backstep ( )
inlineprotectedvirtual
template<class T >
INLINE coDLListIter< T > & covise::coDLListIter< T >::insertAfter ( const T &  newElem)

add new element after my position

template<class T >
INLINE coDLListIter< T > & covise::coDLListIter< T >::insertBefore ( const T &  newElem)

add new element after my position

template<class T>
virtual void covise::coDLListIter< T >::nextValid ( )
inlineprotectedvirtual
template<class T>
covise::coDLListIter< T >::operator bool ( )
inline

check wether we point to an existing element: if (iter) ...

template<class T>
T& covise::coDLListIter< T >::operator() ( )
inline

access object with iter(): if (iter)=false: whatever might be in

template<class T>
T& covise::coDLListIter< T >::operator* ( )
inline

access object with (*iter)

template<class T>
void covise::coDLListIter< T >::operator++ ( )
inline

go to next element : ++iter

template<class T>
void covise::coDLListIter< T >::operator++ ( int  )
inline

go to next element : iter++

template<class T>
void covise::coDLListIter< T >::operator-- ( )
inline

go to previous element : –iter

template<class T>
void covise::coDLListIter< T >::operator-- ( int  )
inline

go to previous element : iter–

template<class T>
T covise::coDLListIter< T >::operator-> ( )
inline

access object with iter->something: only if T is a pointer

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

standard assignment operator

template<class T>
void covise::coDLListIter< T >::operator= ( const T &  elem)
inline

set to specific element

template<class T>
void covise::coDLListIter< T >::operator= ( int  num)
inline

set to element # if existent

template<class T>
virtual void covise::coDLListIter< T >::prevValid ( )
inlineprotectedvirtual
template<class T>
virtual void covise::coDLListIter< T >::remove ( )
inlinevirtual

delete my element: iter moves to element behind if existent

Reimplemented in covise::coDLListSafeIter< T >.

template<class T>
void covise::coDLListIter< T >::setFirst ( )
inline

set to first element

template<class T>
void covise::coDLListIter< T >::setLast ( )
inline

set to last element

Member Data Documentation

template<class T>
coDLListElem<T>* covise::coDLListIter< T >::d_actElem
protected
template<class T>
coDLList<T>* covise::coDLListIter< T >::d_myList
protected

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