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