Qore Programming Language Reference Manual 1.12.4
Loading...
Searching...
No Matches
QC_RangeIterator.dox.h
1
2namespace Qore {
4
32
33public:
35
49 constructor(int start, int stop, int step = 1, auto val);
50
51public:
53
64 constructor(int stop);
65
66public:
68
74
75public:
77
94auto getValue();
95
96public:
98
111bool next();
112
113public:
115
141
142public:
144
155bool valid();
156};
157}
158
160namespace Qore {
178
181
212RangeIterator xrange(int start, int stop, int step = 1, auto val);
213
215
239
241}
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
This class defines a range-like iterator to be used to iterate numerical sequences.
Definition: QC_RangeIterator.dox.h:31
copy()
Creates a copy of the RangeIterator object, iterating the same object as the original and in the same...
auto getValue()
returns the current value or throws an INVALID-ITERATOR exception if the iterator is invalid
reset()
Reset the iterator instance to its initial state (start, stop, and step).
bool next()
This method returns True while there are more numbers to iterate and False when the range has been co...
constructor(int stop)
creates the numerical sequence iterator with the initial arguments
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
constructor(int start, int stop, int step=1, auto val)
creates the numerical sequence iterator with the initial arguments
RangeIterator xrange(int start, int stop, int step=1, auto val)
Returns a RangeIterator containing an arithmetic progression of integers.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2