Qore Programming Language Reference Manual 0.8.8

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

All Classes Namespaces Functions Variables Groups Pages
QC_HashListIterator.dox.h
1 namespace Qore {
4
32 class HashListIterator : public AbstractQuantifiedBidirectionalIterator {
33
34 public:
36
43 constructor(hash h);
44
45 public:
47
53 constructor();
54
55 public:
57
62 copy();
63
64 public:
66
77 bool empty();
78
79 public:
81
94 bool first();
95
96 public:
98
118 any getKeyValue(string key);
119
120 public:
122
140 hash getRow();
141
142 public:
144
163 hash getValue();
164
165 public:
167
179 int index();
180
181 public:
183
196 bool last();
197
198 public:
200
212 int max();
213
214 public:
216
236 any memberGate(string key);
237
238 public:
240
254 bool next();
255
256 public:
258
272 bool prev();
273
274 public:
276
285 reset();
286
287 public:
289
301 bool set(int pos);
302
303 public:
305
316 bool valid();
317 };
318 };
Qore::HashListIterator::max
int max()
returns the number of elements in the list
Qore::HashListIterator::last
bool last()
returns True if on the last element of the list
Qore::HashListIterator::next
bool next()
Moves the current position to the next element in the result list; returns False if there are no more...
Qore::HashListIterator::prev
bool prev()
Moves the current position to the previous element in the result list; returns False if there are no ...
Qore::HashListIterator::getKeyValue
any getKeyValue(string key)
Returns the current value for the column given as an argument.
Qore::HashListIterator::empty
bool empty()
returns True if the result list is empty; False if not
Qore::HashListIterator::getValue
hash getValue()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
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::HashListIterator::index
int index()
returns the current iterator position in the list or -1 if not pointing at a valid element ...
Qore::HashListIterator
This class an iterator class for hashes of lists as returned by Qore::SQL::Datasource::select() and Q...
Definition: QC_HashListIterator.dox.h:32
Qore::HashListIterator::set
bool set(int pos)
sets the new position in the result list; if the position is invalid then the method returns False...
Qore::HashListIterator::getRow
hash getRow()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
Qore::HashListIterator::first
bool first()
returns True if on the first element of the list
Qore::HashListIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
Qore::HashListIterator::memberGate
any memberGate(string key)
This method allows the iterator to be dereferenced directly as a hash for the current row being itera...
Qore::HashListIterator::reset
reset()
Reset the iterator instance to its initial state.
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::HashListIterator::copy
copy()
Creates a copy of the HashListIterator object, iterating the same object as the original and in the s...
Qore::HashListIterator::constructor
constructor()
Creates an empty hash list iterator object.