Go to the documentation of this file.
18 #ifndef __LIBSTD_ITERATOR_H
19 #define __LIBSTD_ITERATOR_H
46 virtual void reset() = 0;
53 virtual bool hasNext()
const = 0;
67 virtual const T &
current()
const = 0;
84 virtual T &
next() = 0;
virtual T & next()=0
Fetch the next item modifiable.
virtual const T & current() const =0
Get the current item read-only.
Abstracts an iteration process.
virtual void operator++(int num)=0
Increment operator.
virtual ~Iterator()
Destructor.
virtual void reset()=0
Restart iteration from the beginning.
virtual bool hasNext() const =0
Check if there is more to iterate.
virtual bool hasCurrent() const =0
Check if there is a current item.
virtual bool remove()=0
Remove the current item from the underlying Container.