QC_ListHashIterator.dox.h
namespace Qore {
class ListHashIterator : public AbstractQuantifiedBidirectionalIterator {
public:
constructor(softlist<auto> l);
public:
copy();
public:
bool empty();
public:
bool first();
public:
auto getKeyValue(string key);
public:
hash<auto> getRow();
public:
hash<auto> getValue();
public:
int index();
public:
bool last();
public:
int max();
public:
auto memberGate(string key);
public:
bool next();
public:
bool prev();
public:
reset();
public:
bool set(int pos);
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::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::constructor
constructor(softlist< auto > l)
Creates the hash list iterator object.
Qore::ListHashIterator::getKeyValue
auto getKeyValue(string key)
Returns the current value for the column given as an argument.
Qore::ListHashIterator::max
int max()
returns the number of elements in the list
Qore::ListHashIterator::first
bool first()
returns True if on the first element of the list
Qore::ListHashIterator::getRow
hash< auto > getRow()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
Qore::ListHashIterator::getValue
hash< auto > getValue()
returns the current row value as a hash or throws an INVALID-ITERATOR exception if the iterator is in...
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::memberGate
auto memberGate(string key)
This method allows the iterator to be dereferenced directly as a hash for the current row being itera...
Qore::ListHashIterator::last
bool last()
returns True if on the last element of the list
Qore::ListHashIterator::reset
reset()
Reset the iterator instance to its initial state.
Qore::ListHashIterator::copy
copy()
Creates a copy of the ListHashIterator object, iterating the same object as the original and in the s...
Qore::ListHashIterator::empty
bool empty()
returns True if the result list is empty; False if not
Qore::ListHashIterator::index
int index()
returns the current iterator position in the list or -1 if not pointing at a valid element
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::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3