#include <vector.h>
Public Member Functions | |
Iterator (void) | |
virtual T | next (void) throw (OutOfBoundsException) |
virtual bool | hasNext (void) |
virtual void | reset (void) |
Vector
. seal::Vector< T >::Iterator::Iterator | ( | void | ) | [inline] |
Default constructor.
T seal::Vector< T >::Iterator::next | ( | void | ) | throw (OutOfBoundsException) [inline, virtual] |
This function will return the next element to which the iterator iterates to. An OutOfBoundsException
is thrown in case the user requests the iterator to iterate beyond the bounds of the corresponding vector object.
Implements seal::AbstractIterator< T >.
bool seal::Vector< T >::Iterator::hasNext | ( | void | ) | [inline, virtual] |
This function will return true if the iterator can iterate to a next element of the corresponding vector. It will return false otherwise.
Implements seal::AbstractIterator< T >.
void seal::Vector< T >::Iterator::reset | ( | void | ) | [inline, virtual] |
Resets the iterator to the first element in the vector. First element of the vector is the element with index 0.
Implements seal::AbstractIterator< T >.