A set iterator. More...
#include <Iterator.h>
Public Member Functions | |
SetIterator () | |
Creates a set iterator for an empty set. | |
SetIterator (set< type > &c) | |
Creates a set iterator for the given set. | |
unsigned int | size () |
Returns the size of the set for which this iterator has been created. | |
bool | hasNext () |
Returns true if the iteration is not yet finished. | |
type | next () |
Returns the element at the current iterator position. |
A set iterator.
ork::SetIterator< type >::SetIterator | ( | ) | [inline] |
Creates a set iterator for an empty set.
ork::SetIterator< type >::SetIterator | ( | set< type > & | c | ) | [inline] |
Creates a set iterator for the given set.
bool ork::SetIterator< type >::hasNext | ( | ) | [inline] |
Returns true if the iteration is not yet finished.
type ork::SetIterator< type >::next | ( | ) | [inline] |
Returns the element at the current iterator position.
The iterator position is then incremented.
unsigned int ork::SetIterator< type >::size | ( | ) | [inline] |
Returns the size of the set for which this iterator has been created.