33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/ofstd/oftypes.h"
35 #include "dcmtk/ofstd/ofset.h"
64 : ofset( ofsetv ), pos( 0 )
101 return( &ofset[pos] );
118 if( pos == 0 || pos == num )
132 if( &ofset == &other.
ofset && pos == other.
pos )
144 return( !( *
this == other ) );
OFSetIterator(OFSet< T > &ofsetv)
Constructor.
OFSet< T > & ofset
reference to the set instance
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.
T * Object()
Returns the current element.
This template class represents an iterator class for corresponding set data structures in ofstd...
void ResetEnd()
Resets the iterator to the set's last element.
void ResetBeginning()
Resets the iterator to the set's first element.
unsigned int pos
current position in the set
void Next()
Sets the iterator to the next element in the set.
virtual ~OFSetIterator()
Destructor.
virtual unsigned int NumberOfElements() const
Returns the number of elements in the set.
void Prev()
Sets the iterator to the previous element in the set.
This abstract template class provides a data structure and operations for administrating a set of ele...