FreeNOS
|
Abstracts an iteration process for a constant. More...
#include <ConstIterator.h>
Public Member Functions | |
virtual | ~ConstIterator () |
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 const T & | next ()=0 |
Fetch the next item. More... | |
virtual void | operator++ (int num)=0 |
Increment operator. More... | |
Abstracts an iteration process for a constant.
Definition at line 34 of file ConstIterator.h.
|
inlinevirtual |
Destructor.
Definition at line 41 of file ConstIterator.h.
|
pure virtual |
Get the current item read-only.
|
pure virtual |
Check if there is a current item.
|
pure virtual |
Check if there is more to iterate.
|
pure virtual |
Fetch the next item.
This function first fetches the next item and then updates the current item pointer to that item.
Implemented in ConstHashIterator< K, V >.
|
pure virtual |
Increment operator.
This function first increment the current item and then updates the next item pointer.
num | Ignored |
Implemented in ConstHashIterator< K, V >.
|
pure virtual |
Restart iteration from the beginning.
Implemented in ConstHashIterator< K, V >.