Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKValueListIterator Class Template Reference

provides a VDKValueList iterator. More...

#include <value_sem_list.h>

List of all members.

Public Methods


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>
T& VDKValueListIterator< T >::current   [inline]
 

Returns type T currently accessed

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>
void VDKValueListIterator< T >::operator++ int    [inline]
 

Incremental operator (infix)

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

Incremental operator (postfix)

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

Decremental operator (infix)

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

Decremental operator (postfix)

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

Rewinds operator


The documentation for this class was generated from the following file:
Generated on Sat May 4 23:45:57 2002 for vdk 2.0.1 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002