SIntDict< T >::Iterator Class Reference

#include <sortdict.h>

List of all members.

Public Member Functions

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


Detailed Description

template<class T>
class SIntDict< T >::Iterator

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

Definition at line 584 of file sortdict.h.


Constructor & Destructor Documentation

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

Create an iterator given the dictionary.

Definition at line 588 of file sortdict.h.

References SIntDict< T >::m_list.

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

Destroys the dictionary

Definition at line 594 of file sortdict.h.


Member Function Documentation

template<class T>
T* SIntDict< 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 602 of file sortdict.h.

template<class T>
T* SIntDict< 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 610 of file sortdict.h.

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

Returns the current compound

Definition at line 616 of file sortdict.h.

template<class T>
T* SIntDict< 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 625 of file sortdict.h.

template<class T>
T* SIntDict< 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 634 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