#include <list.h>
Public Member Functions | |
Iterator (void) | |
virtual bool | hasNext (void) |
virtual T | next (void) throw (OutOfBoundsException) |
virtual void | reset (void) |
LinkedList
. A user of the SEAL library will never need to use this class explicitly. seal::LinkedList< T >::Iterator::Iterator | ( | void | ) | [inline] |
Default constructor.
bool seal::LinkedList< T >::Iterator::hasNext | ( | void | ) | [inline, virtual] |
This function will return true if the iterator can iterate to the next element in the list. It returns false otherwise.
Implements seal::AbstractIterator< T >.
T seal::LinkedList< T >::Iterator::next | ( | void | ) | throw (OutOfBoundsException) [inline, virtual] |
A call to this function will make the iterator iterate to the next element in the list and return that element. If the iterator cannot iterate to the next element, because it has reached the end of the list, it will throw an OutOfBoundsException
.
Implements seal::AbstractIterator< T >.
void seal::LinkedList< T >::Iterator::reset | ( | void | ) | [inline, virtual] |
A call to this function will reset the iterator to the begining of the list. A call to next, after a call to this reset function, will return the first element of the list.
Implements seal::AbstractIterator< T >.