#include <iterator.h>
Inheritance diagram for lcs::Iterator< T >:
Public Member Functions | |
Iterator () | |
virtual | ~Iterator () |
virtual bool | hasNext ()=0 |
virtual T | next ()=0 |
virtual void | reset ()=0 |
lcs::Iterator< T >::Iterator | ( | ) | [inline] |
The default constructor.
virtual lcs::Iterator< T >::~Iterator | ( | ) | [inline, virtual] |
Destrcutor.
virtual bool lcs::Iterator< T >::hasNext | ( | ) | [pure virtual] |
Indicates if there are any more elements in a container at the current state of iteration. Returns true
if yes, false
if not.
Implemented in lcs::ListIterator< T >.
virtual T lcs::Iterator< T >::next | ( | ) | [pure virtual] |
Returns the next element in the container if it exists. Else, the behaviour is undefined.
Implemented in lcs::ListIterator< T >.
virtual void lcs::Iterator< T >::reset | ( | ) | [pure virtual] |
Resets the iterator to the first element of the container class.
Implemented in lcs::ListIterator< T >.