iterator_pattern::Iterator
-
template<typename T>
class Iterator Iterator interface for traversing collections.
Defines the methods for sequentially accessing elements.
Subclassed by iterator_pattern::ConcreteIterator< T >
Public Functions
-
virtual bool hasNext() const = 0
Check if there are more elements in the collection.
- Returns:
True if there are more elements, otherwise false.
-
virtual bool hasNext() const = 0