ISLEman
Public Member Functions | List of all members
SIntDict< T >::IteratorDict Class Reference

#include <sortdict.h>

Public Member Functions

 IteratorDict (const SIntDict< T > &dict)
 
virtual ~IteratorDict ()
 
T * toFirst () const
 
T * toLast () const
 
T * current () const
 
int currentKey () const
 
T * operator++ ()
 
T * operator-- ()
 

Detailed Description

template<class T>
class SIntDict< T >::IteratorDict

Simple iterator for SDict. It iterates over the dictionary elements in an unsorted way, but does provide information about the element's key.

Constructor & Destructor Documentation

§ IteratorDict()

template<class T>
SIntDict< T >::IteratorDict::IteratorDict ( const SIntDict< T > &  dict)
inline

Create an iterator given the dictionary.

§ ~IteratorDict()

template<class T>
virtual SIntDict< T >::IteratorDict::~IteratorDict ( )
inlinevirtual

Destroys the dictionary

Member Function Documentation

§ current()

template<class T>
T* SIntDict< T >::IteratorDict::current ( ) const
inline

Returns the current compound

§ currentKey()

template<class T>
int SIntDict< T >::IteratorDict::currentKey ( ) const
inline

Returns the current key

§ operator++()

template<class T>
T* SIntDict< T >::IteratorDict::operator++ ( )
inline

Moves the iterator to the next element.

Returns
the new "current" element, or zero if the iterator was already pointing at the last element.

§ operator--()

template<class T>
T* SIntDict< T >::IteratorDict::operator-- ( )
inline

Moves the iterator to the previous element.

Returns
the new "current" element, or zero if the iterator was already pointing at the first element.

§ toFirst()

template<class T>
T* SIntDict< T >::IteratorDict::toFirst ( ) const
inline

Set the iterator to the first element in the list.

Returns
The first compound, or zero if the list was empty.

§ toLast()

template<class T>
T* SIntDict< T >::IteratorDict::toLast ( ) const
inline

Set the iterator to the last element in the list.

Returns
The first compound, or zero if the list was empty.

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