Qore Programming Language Reference Manual 1.14.0
|
This class defines an abstract interface for iterators where the size of the object being iterated is known in advance. More...
#include <QC_AbstractQuantifiedIterator.dox.h>
Public Member Methods | |
abstract bool | empty () |
returns True if the object to iterate is empty; False if not More... | |
abstract bool | first () |
returns True if on the first element More... | |
abstract bool | last () |
returns True if on the last element More... | |
Public Member Methods inherited from Qore::AbstractIterator | |
abstract auto | getValue () |
returns the current value More... | |
abstract bool | next () |
Moves the current position to the next element; returns False if there are no more elements. More... | |
abstract bool | valid () |
returns True if the iterator is currently pointing at a valid element, False if not More... | |
This class defines an abstract interface for iterators where the size of the object being iterated is known in advance.
|
pure virtual |
returns True if the object to iterate is empty; False if not
Implemented in Qore::HashIterator, Qore::HashListIterator, Qore::ListHashIterator, and Qore::ListIterator.
|
pure virtual |
returns True if on the first element
Implemented in Qore::HashIterator, Qore::HashListIterator, Qore::HashListReverseIterator, Qore::HashReverseIterator, Qore::ListHashIterator, Qore::ListHashReverseIterator, Qore::ListIterator, Qore::ListReverseIterator, and Qore::ObjectReverseIterator.
|
pure virtual |
returns True if on the last element
Implemented in Qore::HashIterator, Qore::HashListIterator, Qore::HashListReverseIterator, Qore::HashReverseIterator, Qore::ListHashIterator, Qore::ListHashReverseIterator, Qore::ListIterator, Qore::ListReverseIterator, and Qore::ObjectReverseIterator.