SDict< T >::Iterator Class Reference

#include <sortdict.h>

List of all members.

Public Member Functions

 Iterator (const SDict< T > &dict)
virtual ~Iterator ()
T * toFirst () const
T * toLast () const
T * current () const
T * operator++ ()
T * operator-- ()


Detailed Description

template<class T>
class SDict< T >::Iterator

Simple iterator for SDict. It iterates in the order in which the elements are stored.

Definition at line 275 of file sortdict.h.


Constructor & Destructor Documentation

template<class T>
SDict< T >::Iterator::Iterator ( const SDict< T > &  dict  )  [inline]

Create an iterator given the dictionary.

Definition at line 279 of file sortdict.h.

References SDict< T >::m_list.

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

Destroys the dictionary

Definition at line 285 of file sortdict.h.


Member Function Documentation

template<class T>
T* SDict< T >::Iterator::toFirst (  )  const [inline]

Set the iterator to the first element in the list.

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

Definition at line 293 of file sortdict.h.

template<class T>
T* SDict< T >::Iterator::toLast (  )  const [inline]

Set the iterator to the last element in the list.

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

Definition at line 301 of file sortdict.h.

template<class T>
T* SDict< T >::Iterator::current (  )  const [inline]

Returns the current compound

Definition at line 307 of file sortdict.h.

template<class T>
T* SDict< T >::Iterator::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.

Definition at line 316 of file sortdict.h.

template<class T>
T* SDict< T >::Iterator::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.

Definition at line 325 of file sortdict.h.


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



Generated on Mon Mar 31 10:59:03 2008 by  doxygen 1.5.1