This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
This class an iterator class for hashes.
Definition: QC_HashKeyIterator.dox.h:32
This class an iterator class for hashes of lists as returned by Qore::SQL::Datasource::select() and Q...
Definition: QC_HashListIterator.dox.h:38
This class an iterator class for hashes.
Definition: QC_HashPairIterator.dox.h:32
Methods in this pseudo-class can be executed on hash values.
Definition: Pseudo_QC_Hash.dox.h:6
bool hasKeyValue(softstring key)
Returns True if the key exists and is assigned to a value, False if not.
list< string > keys()
Returns a list of key names of the hash.
bool complexType()
returns True if the hash has a complex type (Hashdecl: Type-Safe Hash Declarations or Hash With Decla...
HashKeyIterator keyIterator()
Returns a HashKeyIterator object for the hash.
bool compareKeys(hash< auto > oh)
Returns True if the hash argument passed has the same keys in the same order as the current hash,...
bool hasKey(softstring key)
Returns True if the key exists in the hash (may or may not be assigned a value), False if not.
auto firstValue()
Returns the value assigned to the first key in the hash if any or NOTHING if the hash has no keys.
bool empty()
Returns True if the hash has no keys, False if it does.
list< auto > values()
Returns a list of values of the hash.
auto lastValue()
Returns the value assigned to the last key in the hash if any or NOTHING if the hash has no keys.
HashListIterator contextIterator()
Returns a HashListIterator object for the hash.
int size()
Returns the number of keys in the hash.
HashPairIterator pairIterator()
Returns a HashPairIterator object for the hash.
bool val()
Returns False if the hash has no keys, True if it does.
bool sizep()
Returns True since hashes can return a non-zero size.
AbstractIterator iterator()
Returns a HashIterator object for the hash.
*string lastKey()
Returns the last key name in the hash or NOTHING if the hash has no keys.
*string firstKey()
Returns the first key name in the hash or NOTHING if the hash has no keys.
int typeCode()
Returns Qore::NT_HASH.
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:6
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2