30 #ifndef OFUnorderedSet_h
31 #define OFUnorderedSet_h
33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/ofstd/oftypes.h"
35 #include "dcmtk/ofstd/ofset.h"
108 OFBool result = OFTrue;
114 for(
unsigned int i=0 ; i<other.
num && result == OFTrue ; i++ )
139 return( !( *
this == other ) );
153 T *newItem =
new T( item );
169 for(
unsigned int i=0 ; i<other.
num ; i++ )
180 OFBool itemDeleted = OFFalse;
183 for(
unsigned int i=0 ; i<OFSet<T>::num && !itemDeleted ; i++ )
206 itemDeleted = OFTrue;
246 virtual T *
Find(
const T &item )
const
249 OFBool itemFound = OFFalse;
251 for( i=0 ; i<OFSet<T>::num && !itemFound ; i++ )
270 OFBool itemFound = OFFalse;
272 for(
unsigned int i=0 ; i<OFSet<T>::num && !itemFound ; i++ )
295 OFBool result = OFTrue;
301 for(
unsigned int i=0 ; i<other.
num && result == OFTrue ; i++ )
344 resultSet.
Insert( other );
366 for(
unsigned int i=0 ; i< OFSet<T>::num ; i++ )
400 for(
unsigned int i=0 ; i< OFSet<T>::num ; i++ )