OFSetIterator< T > Class Template Reference

This template class represents an iterator class for corresponding set data structures in ofstd. More...

List of all members.

Public Member Functions

 OFSetIterator (OFSet< T > &ofsetv)
 Constructor.
virtual ~OFSetIterator ()
 Destructor.
void ResetBeginning ()
 Resets the iterator to the set's first element.
void ResetEnd ()
 Resets the iterator to the set's last element.
T * Object ()
 Returns the current element.
void Next ()
 Sets the iterator to the next element in the set.
void Prev ()
 Sets the iterator to the previous element in the set.
OFBool operator== (const OFSetIterator< T > &other) const
 Determines if two iterators are identical.
OFBool operator!= (const OFSetIterator< T > &other) const
 Determines if two iterators are not identical.

Protected Attributes

OFSet< T > & ofset
unsigned int pos


Detailed Description

template<class T>
class OFSetIterator< T >

This template class represents an iterator class for corresponding set data structures in ofstd.

Note the following properties of this class:

Definition at line 56 of file ofsetit.h.


Constructor & Destructor Documentation

template<class T>
OFSetIterator< T >::OFSetIterator OFSet< T > &  ofsetv  )  [inline]
 

Constructor.

The iterator will be set to the set's first element.

Parameters:
ofsetv Set to which the created object shall be an iterator.

Definition at line 66 of file ofsetit.h.


Member Function Documentation

template<class T>
T* OFSetIterator< T >::Object  )  [inline]
 

Returns the current element.

Returns:
Pointer to the current original element in the set.

Definition at line 99 of file ofsetit.h.

References OFSetIterator< T >::ofset, and OFSetIterator< T >::pos.

template<class T>
OFBool OFSetIterator< T >::operator!= const OFSetIterator< T > &  other  )  const [inline]
 

Determines if two iterators are not identical.

Parameters:
other Iterator which shall be compared with this.
Returns:
OFTrue if iterators are not identical, OFFalse otherwise.

Definition at line 145 of file ofsetit.h.

template<class T>
OFBool OFSetIterator< T >::operator== const OFSetIterator< T > &  other  )  const [inline]
 

Determines if two iterators are identical.

Parameters:
other Iterator which shall be compared with this.
Returns:
OFTrue if iterators are identical, OFFalse otherwise.

Definition at line 131 of file ofsetit.h.

References OFSetIterator< T >::ofset, and OFSetIterator< T >::pos.


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


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5