SDict< T >::IteratorDict Class Reference

#include <sortdict.h>

List of all members.

Public Member Functions

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


Detailed Description

template<class T>
class SDict< T >::IteratorDict

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

Definition at line 339 of file sortdict.h.


Constructor & Destructor Documentation

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

Create an iterator given the dictionary.

Definition at line 343 of file sortdict.h.

References SDict< T >::m_dict.

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

Destroys the dictionary

Definition at line 349 of file sortdict.h.


Member Function Documentation

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

Definition at line 357 of file sortdict.h.

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

Definition at line 365 of file sortdict.h.

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

Returns the current compound

Definition at line 371 of file sortdict.h.

template<class T>
QCString SDict< T >::IteratorDict::currentKey (  )  const [inline]

Returns the current key

Definition at line 377 of file sortdict.h.

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

Definition at line 386 of file sortdict.h.

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

Definition at line 395 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