Qore Programming Language Reference Manual 1.18.0
Loading...
Searching...
No Matches
QC_HashIterator.dox.h
1
2namespace Qore {
4
29
30public:
32
39 constructor(hash<auto> h);
40
41public:
43
50
51public:
53
59
60public:
62
73bool empty();
74
75public:
77
90bool first();
91
92public:
94
109string getKey();
110
111public:
113
131
132public:
134
151auto getValue();
152
153public:
155
172hash<auto> getValuePair();
173
174public:
176
189bool last();
190
191public:
193
207bool next();
208
209public:
211
225bool prev();
226
227public:
229
239
240public:
242
253bool valid();
254};
255}
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.
Definition: QC_HashIterator.dox.h:28
auto getKeyValue()
returns the current value of the current hash key being iterated or throws an INVALID-ITERATOR except...
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
bool first()
returns True if on the first element of the hash
constructor()
Creates an empty hash iterator object.
bool last()
returns True if on the last element of the hash
string getKey()
returns the current key value or throws an INVALID-ITERATOR exception if the iterator is invalid
constructor(hash< auto > h)
Creates the hash iterator object.
bool prev()
Moves the current position to the previous element in the hash; returns False if there are no more el...
auto getValue()
returns the current key value or throws an INVALID-ITERATOR exception if the iterator is invalid
reset()
Reset the iterator instance to its initial state.
bool empty()
returns True if the hash is empty; False if not
bool next()
Moves the current position to the next element in the hash; returns False if there are no more elemen...
copy()
Creates a copy of the HashIterator object, iterating the same object as the original and in the same ...
hash< auto > getValuePair()
returns a hash with the current key and value (a hash with 2 keys: "key" and "value") or throws an IN...
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2