vdk 2.4.0
|
provides a VDKValueList iterator More...
#include <value_sem_list.h>
provides a VDKValueList iterator
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();
VDKValueListIterator< T >::VDKValueListIterator | ( | ) | [inline] |
Default constructor (unuseful)
VDKValueListIterator< T >::VDKValueListIterator | ( | const VDKValueList< T > & | l | ) | [inline] |
Constructor
l | a VDKValueList reference |
virtual VDKValueListIterator< T >::~VDKValueListIterator | ( | ) | [inline, virtual] |
Destructor
T& VDKValueListIterator< T >::current | ( | ) | [inline] |
Returns type T currently accessed
void VDKValueListIterator< T >::first | ( | ) | [inline] |
Goes to list head
void VDKValueListIterator< T >::last | ( | ) | [inline] |
Goes to list tail
VDKValueListIterator< T >::operator int | ( | ) | [inline] |
Returns 0 at list end
void VDKValueListIterator< T >::operator++ | ( | ) | [inline] |
Incremental operator (postfix)
void VDKValueListIterator< T >::operator++ | ( | int | ) | [inline] |
Incremental operator (infix)
void VDKValueListIterator< T >::operator-- | ( | int | ) | [inline] |
Decremental operator (infix)
void VDKValueListIterator< T >::operator-- | ( | ) | [inline] |
Decremental operator (postfix)
void VDKValueListIterator< T >::restart | ( | ) | [inline] |
Rewinds operator