| Qore Programming Language Reference Manual 1.0.8

QC_ListIterator.dox.h
1 namespace Qore {
4
28 class ListIterator : public AbstractQuantifiedBidirectionalIterator {
29
30 public:
32
41 constructor(softlist<auto> l);
42
43 public:
45
50 copy();
51
52 public:
54
65 bool empty();
66
67 public:
69
82 bool first();
83
84 public:
86
101 auto getValue();
102
103 public:
105
117 int index();
118
119 public:
121
134 bool last();
135
136 public:
138
150 int max();
151
152 public:
154
168 bool next();
169
170 public:
172
186 bool prev();
187
188 public:
190
199 reset();
200
201 public:
203
215 bool set(int pos);
216
217 public:
219
230 bool valid();
231 };
232 }
Qore::ListIterator::last
bool last()
returns True if on the last element of the list
Qore::ListIterator::getValue
auto getValue()
returns the current value or throws an INVALID-ITERATOR exception if the iterator is invalid ...
Qore::ListIterator::prev
bool prev()
Moves the current position to the previous element in the list; returns False if there are no more el...
Qore::ListIterator
This class an iterator class for lists.
Definition: QC_ListIterator.dox.h:28
Qore::ListIterator::empty
bool empty()
returns True if the list is empty; False if not
Qore::ListIterator::next
bool next()
Moves the current position to the next element in the list; returns False if there are no more elemen...
Qore::ListIterator::max
int max()
returns the number of elements in the list
Qore::ListIterator::constructor
constructor(softlist< auto > l)
Creates the list iterator object.
Qore::AbstractQuantifiedBidirectionalIterator
This class defines an abstract interface for bidirectional iterators where the size of the object is ...
Definition: QC_AbstractQuantifiedBidirectionalIterator.dox.h:6
Qore::ListIterator::first
bool first()
returns True if on the first element of the list
Qore::ListIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
Qore::ListIterator::index
int index()
returns the current iterator position in the list or -1 if not pointing at a valid element ...
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::ListIterator::copy
copy()
Creates a copy of the ListIterator object, iterating the same object as the original and in the same ...
Qore::ListIterator::reset
reset()
Reset the iterator instance to its initial state.