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