| Qore Programming Language Reference Manual 1.0.8

QC_SingleValueIterator.dox.h
1 namespace Qore {
4
25 class SingleValueIterator : public AbstractIterator {
26
27 public:
29
36 constructor(auto v);
37
38 public:
40
45 copy();
46
47 public:
49
63 auto getValue();
64
65 public:
67
80 bool next();
81
82 public:
84
93 reset();
94
95 public:
97
108 bool valid();
109 };
110 }
Qore::SingleValueIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
Qore::SingleValueIterator::constructor
constructor(auto v)
creates the single value iterator with the value passed as an argument
Qore::SingleValueIterator::copy
copy()
Creates a copy of the SingleValueIterator object, iterating the same object as the original and in th...
Qore::SingleValueIterator
This class defines a simple iterator to be used to iterate single values (or complex objects where no...
Definition: QC_SingleValueIterator.dox.h:25
Qore::SingleValueIterator::reset
reset()
Reset the iterator instance to its initial state.
Qore::SingleValueIterator::getValue
auto getValue()
returns the current value or throws an INVALID-ITERATOR exception if the iterator is invalid ...
Qore::SingleValueIterator::next
bool next()
This method returns True and False alternately unless it has no value to iterate, in which case it re...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10