#include <map.h>
Public Member Functions | |
Iterator (void) | |
virtual | ~Iterator () |
virtual bool | hasNext (void) |
virtual DataType | next (void) throw (OutOfBoundsException) |
virtual void | reset (void) |
IndexType | getCurrentIndex (void) throw (OutOfBoundsException) |
seal::Map
. seal::Map< IndexType, DataType >::Iterator::Iterator | ( | void | ) | [inline] |
Default constructor.
virtual seal::Map< IndexType, DataType >::Iterator::~Iterator | ( | ) | [inline, virtual] |
Destructor.
bool seal::Map< IndexType, DataType >::Iterator::hasNext | ( | void | ) | [inline, virtual] |
Returns true if there is a next element to which the iterator can iterate to; False otherwise.
Implements seal::AbstractIterator< DataType >.
DataType seal::Map< IndexType, DataType >::Iterator::next | ( | void | ) | throw (OutOfBoundsException) [inline, virtual] |
A call to this function will make the iterator iterate to the next element and return its value.
Implements seal::AbstractIterator< DataType >.
virtual void seal::Map< IndexType, DataType >::Iterator::reset | ( | void | ) | [inline, virtual] |
Resets the iterator to the begining of the map.
Implements seal::AbstractIterator< DataType >.
IndexType seal::Map< IndexType, DataType >::Iterator::getCurrentIndex | ( | void | ) | throw (OutOfBoundsException) [inline] |
Returns the index of the value returned by the function next
. Throws OutOfBoundsException when called before calling next
.