Qore Programming Language Reference Manual 1.19.2
Loading...
Searching...
No Matches
QC_HashListIterator.dox.h
1
2namespace Qore {
4
39
40public:
42
51 constructor(hash<auto> h);
52
53public:
55
62
63public:
65
71
72public:
74
85bool empty();
86
87public:
89
102bool first();
103
104public:
106
126auto getKeyValue(string key);
127
128public:
130
148hash<auto> getRow();
149
150public:
152
171hash<auto> getValue();
172
173public:
175
187int index();
188
189public:
191
204bool last();
205
206public:
208
220int max();
221
222public:
224
244auto memberGate(string key);
245
246public:
248
262bool next();
263
264public:
266
280bool prev();
281
282public:
284
294
295public:
297
309bool set(int pos);
310
311public:
313
324bool valid();
325};
326}
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 hashes of lists as returned by Qore::SQL::Datasource::select() and Q...
Definition: QC_HashListIterator.dox.h:38
bool last()
returns True if on the last element of the list
auto memberGate(string key)
This method allows the iterator to be dereferenced directly as a hash for the current row being itera...
bool empty()
returns True if the result list is empty; False if not
reset()
Reset the iterator instance to its initial state.
constructor(hash< auto > h)
Creates the hash list iterator object.
bool next()
Moves the current position to the next element in the result list; returns False if there are no more...
constructor()
Creates an empty hash list iterator object.
int max()
returns the number of elements in the list
bool prev()
Moves the current position to the previous element in the result list; returns False if there are no ...
hash< auto > getValue()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
hash< auto > getRow()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
auto getKeyValue(string key)
Returns the current value for the column given as an argument.
bool set(int pos)
sets the new position in the result list; if the position is invalid then the method returns False,...
int index()
returns the current iterator position in the list or -1 if not pointing at a valid element
copy()
Creates a copy of the HashListIterator object, iterating the same object as the original and in the s...
bool first()
returns True if on the first element of the list
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2