Qore Programming Language Reference Manual  0.8.12.2
 All Classes Namespaces Functions Variables Groups Pages
Pseudo_QC_Hash.dox.h
1 namespace Qore {
4 /***/
5 class <hash> : public <value> {
6 
7 public:
9 
25 bool compareKeys(hash oh);
26 
27 public:
29 
48 
49 public:
51 
63 bool empty();
64 
65 public:
67 
81 *string firstKey();
82 
83 public:
85 
99 any firstValue();
100 
101 public:
103 
119 bool hasKey(softstring key);
120 
121 public:
123 
139 bool hasKeyValue(softstring key);
140 
141 public:
143 
158 
159 public:
161 
178 
179 public:
181 
195 list keys();
196 
197 public:
199 
213 *string lastKey();
214 
215 public:
217 
231 any lastValue();
232 
233 public:
235 
250 
251 public:
253 
269 int size();
270 
271 public:
273 
282 bool sizep();
283 
284 public:
286 
302 int typeCode();
303 
304 public:
306 
324 bool val();
325 
326 public:
328 
344 list values();
345 };
346 };
any firstValue()
Returns the value assigned to the first key in the hash if any or NOTHING if the hash has no keys...
list values()
Returns a list of values of the hash.
list keys()
Returns a list of key names of the hash.
bool val()
Returns False if the hash has no keys, True if it does.
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:5
bool hasKey(softstring key)
Returns True if the key exists in the hash (may or may not be assigned a value), False if not...
HashListIterator contextIterator()
Returns a HashListIterator object for the hash.
This class an iterator class for hashes.
Definition: QC_HashPairIterator.dox.h:32
int size()
Returns the number of keys in the hash.
AbstractIterator iterator()
Returns a HashIterator object for the hash.
list list(...)
Returns a list of the arguments passed at the top level.
any lastValue()
Returns the value assigned to the last key in the hash if any or NOTHING if the hash has no keys...
HashKeyIterator keyIterator()
Returns a HashKeyIterator object for the hash.
int typeCode()
Returns Qore::NT_HASH.
*string lastKey()
Returns the last key name in the hash or NOTHING if the hash has no keys.
bool sizep()
Returns True since hashes can return a non-zero size.
*string firstKey()
Returns the first key name in the hash or NOTHING if the hash has no keys.
This class an iterator class for hashes of lists as returned by Qore::SQL::Datasource::select() and Q...
Definition: QC_HashListIterator.dox.h:33
bool empty()
Returns True if the hash has no keys, False if it does.
HashPairIterator pairIterator()
Returns a HashPairIterator object for the hash.
bool compareKeys(hash oh)
Returns True if the hash argument passed has the same keys in the same order as the current hash...
Methods in this pseudo-class can be executed on hash values.
Definition: Pseudo_QC_Hash.dox.h:5
bool hasKeyValue(softstring key)
Returns True if the key exists and is assigned to a value, False if not.
hash hash(object obj)
Returns a hash of an object&#39;s members.
This class an iterator class for hashes.
Definition: QC_HashKeyIterator.dox.h:32
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10