Loading...
Searching...
No Matches
QC_HashIterator.dox.h
namespace Qore {
class HashIterator : public AbstractQuantifiedBidirectionalIterator {
public:
constructor(hash<auto> h);
public:
constructor();
public:
copy();
public:
bool empty();
public:
bool first();
public:
string getKey();
public:
auto getKeyValue();
public:
auto getValue();
public:
hash<auto> getValuePair();
public:
bool last();
public:
bool next();
public:
bool prev();
public:
reset();
public:
bool valid();
};
}
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
This class an iterator class for hashes.
Definition: QC_HashIterator.dox.h:28
Qore::HashIterator::getKeyValue
auto getKeyValue()
returns the current value of the current hash key being iterated or throws an INVALID-ITERATOR except...
Qore::HashIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
Qore::HashIterator::first
bool first()
returns True if on the first element of the hash
Qore::HashIterator::constructor
constructor()
Creates an empty hash iterator object.
Qore::HashIterator::last
bool last()
returns True if on the last element of the hash
Qore::HashIterator::getKey
string getKey()
returns the current key value or throws an INVALID-ITERATOR exception if the iterator is invalid
Qore::HashIterator::constructor
constructor(hash< auto > h)
Creates the hash iterator object.
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::getValue
auto getValue()
returns the current key value or throws an INVALID-ITERATOR exception if the iterator is invalid
Qore::HashIterator::reset
reset()
Reset the iterator instance to its initial state.
Qore::HashIterator::empty
bool empty()
returns True if the hash is empty; False if not
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::copy
copy()
Creates a copy of the HashIterator object, iterating the same object as the original and in the same ...
Qore::HashIterator::getValuePair
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
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3