VDKValueListIterator< T > Class Template Reference

provides a VDKValueList iterator More...

#include <value_sem_list.h>

List of all members.

Public Member Functions


Detailed Description

template<class T>
class VDKValueListIterator< T >

provides a VDKValueList iterator

Programming tips
Using iterators is straightforward:
  typedef VDKValueList<int> IntList;
  typedef VDKValueListIterator<int> IntListIterator;
  IntList list;
  // some code to fill list goes here..
  // ...
  // ...
  IntListIterator li(list);
  while(li)
    {
    // make whatever
    makewhatever(li.current());
    li++;
    }
  // or
  // for(IntListIterator li(list);li;li++)
  // printf("\n%d",li.current();


Constructor & Destructor Documentation

template<class T>
VDKValueListIterator< T >::VDKValueListIterator (  )  [inline]

Default constructor (unuseful)

template<class T>
VDKValueListIterator< T >::VDKValueListIterator ( const VDKValueList< T > &  l  )  [inline]

Constructor

Parameters:
l a VDKValueList reference

template<class T>
virtual VDKValueListIterator< T >::~VDKValueListIterator (  )  [inline, virtual]

Destructor


Member Function Documentation

template<class T>
void VDKValueListIterator< T >::operator++ (  )  [inline]

Incremental operator (postfix)

template<class T>
void VDKValueListIterator< T >::operator++ ( int   )  [inline]

Incremental operator (infix)

template<class T>
void VDKValueListIterator< T >::operator-- (  )  [inline]

Decremental operator (postfix)

template<class T>
void VDKValueListIterator< T >::operator-- ( int   )  [inline]

Decremental operator (infix)

template<class T>
void VDKValueListIterator< T >::first (  )  [inline]

Goes to list head

template<class T>
void VDKValueListIterator< T >::last (  )  [inline]

Goes to list tail

template<class T>
VDKValueListIterator< T >::operator int (  )  [inline]

Returns 0 at list end

template<class T>
T& VDKValueListIterator< T >::current (  )  [inline]

Returns type T currently accessed

template<class T>
void VDKValueListIterator< T >::restart (  )  [inline]

Rewinds operator


The documentation for this class was generated from the following file:
Generated on Fri Nov 10 15:11:28 2006 for vdk 2.4.0 by  doxygen 1.5.1