FreeNOS
|
Abstracts an iteration process. More...
#include <Iterator.h>
Public Member Functions | |
virtual | ~Iterator () |
Destructor. More... | |
virtual void | reset ()=0 |
Restart iteration from the beginning. More... | |
virtual bool | hasNext () const =0 |
Check if there is more to iterate. More... | |
virtual bool | hasCurrent () const =0 |
Check if there is a current item. More... | |
virtual const T & | current () const =0 |
Get the current item read-only. More... | |
virtual T & | current ()=0 |
Get the current item modifiable. More... | |
virtual T & | next ()=0 |
Fetch the next item modifiable. More... | |
virtual bool | remove ()=0 |
Remove the current item from the underlying Container. More... | |
virtual void | operator++ (int num)=0 |
Increment operator. More... | |
Abstracts an iteration process.
Definition at line 34 of file Iterator.h.
Destructor.
Definition at line 41 of file Iterator.h.
|
pure virtual |
Get the current item read-only.
Implemented in ListIterator< T >, ListIterator< K >, ListIterator< K >, and HashIterator< K, V >.
|
pure virtual |
Get the current item modifiable.
Implemented in ListIterator< K >, ListIterator< T >, ListIterator< K >, and HashIterator< K, V >.
|
pure virtual |
Check if there is a current item.
Implemented in ListIterator< T >, and ListIterator< K >.
|
pure virtual |
Check if there is more to iterate.
Implemented in ListIterator< T >, and ListIterator< K >.
|
pure virtual |
Fetch the next item modifiable.
This function first fetches the next item and then updates the current item pointer to that item.
Implemented in ListIterator< T >, ListIterator< K >, and HashIterator< K, V >.
|
pure virtual |
Increment operator.
This function first increment the current item and then updates the next item pointer.
Implemented in ListIterator< T >, ListIterator< K >, and HashIterator< K, V >.
|
pure virtual |
Remove the current item from the underlying Container.
Implemented in ListIterator< T >, ListIterator< K >, and HashIterator< K, V >.
|
pure virtual |
Restart iteration from the beginning.
Implemented in ListIterator< T >, ListIterator< K >, and HashIterator< K, V >.