Qore Programming Language Reference Manual: lib/QC_ListHashIterator.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

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