33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/ofstd/oftypes.h"
35 #include "dcmtk/ofstd/ofset.h"
85 unsigned int num =
ofset.NumberOfElements();
98 if(
pos ==
ofset.NumberOfElements() )
108 if(
pos <
ofset.NumberOfElements() )
116 unsigned int num =
ofset.NumberOfElements();
118 if(
pos == 0 ||
pos == num )
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.
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...