Qore Programming Language Reference Manual 1.19.2
Loading...
Searching...
No Matches
QC_ListHashIterator.dox.h
1
2namespace Qore {
4
31
32public:
34
43 constructor(softlist<auto> l);
44
45public:
47
53
54public:
56
67bool empty();
68
69public:
71
84bool first();
85
86public:
88
107auto getKeyValue(string key);
108
109public:
111
128hash<auto> getRow();
129
130public:
132
150hash<auto> getValue();
151
152public:
154
166int index();
167
168public:
170
183bool last();
184
185public:
187
199int max();
200
201public:
203
222auto memberGate(string key);
223
224public:
226
240bool next();
241
242public:
244
258bool prev();
259
260public:
262
272
273public:
275
287bool set(int pos);
288
289public:
291
302bool valid();
303};
304}
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 of hashes as returned by Qore::SQL::Datasource::selectRows() a...
Definition: QC_ListHashIterator.dox.h:30
bool next()
Moves the current position to the next element in the result list; returns False if there are no more...
constructor(softlist< auto > l)
Creates the hash list iterator object.
hash< auto > getRow()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
auto getKeyValue(string key)
Returns the current value for the column given as an argument.
int max()
returns the number of elements in the list
bool first()
returns True if on the first element of the list
hash< auto > getValue()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
bool set(int pos)
sets the new position in the result list; if the position is invalid then the method returns False,...
auto memberGate(string key)
This method allows the iterator to be dereferenced directly as a hash for the current row being itera...
bool last()
returns True if on the last element of the list
reset()
Reset the iterator instance to its initial state.
copy()
Creates a copy of the ListHashIterator object, iterating the same object as the original and in the s...
bool empty()
returns True if the result list is empty; False if not
int index()
returns the current iterator position in the list or -1 if not pointing at a valid element
bool prev()
Moves the current position to the previous element in the result list; returns False if there are no ...
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