Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

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
46 HashListIterator contextIterator();
47
48 public:
50
62 bool empty();
63
64 public:
66
80 *string firstKey();
81
82 public:
84
98 any firstValue();
99
100 public:
102
118 bool hasKey(softstring key);
119
120 public:
122
138 bool hasKeyValue(softstring key);
139
140 public:
142
156 AbstractIterator iterator();
157
158 public:
160
176 HashKeyIterator keyIterator();
177
178 public:
180
194 list keys();
195
196 public:
198
212 *string lastKey();
213
214 public:
216
230 any lastValue();
231
232 public:
234
248 HashPairIterator pairIterator();
249
250 public:
252
266 int size();
267
268 public:
270
286 int typeCode();
287
288 public:
290
308 bool val();
309
310 public:
312
328 list values();
329 };
330 };
<hash>::firstValue
any firstValue()
Returns the value assigned to the first key in the hash if any or NOTHING if the hash has no keys...
<hash>::values
list values()
Returns a list of values of the hash.
<hash>::keys
list keys()
Returns a list of key names of the hash.
<hash>::val
bool val()
Returns False if the hash has no keys, True if it does.
<value>
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
<hash>::hasKey
bool hasKey(softstring key)
Returns True if the key exists in the hash (may or may not be assigned a value), False if not...
<hash>::contextIterator
HashListIterator contextIterator()
Returns a HashListIterator object for the hash.
Qore::HashPairIterator
This class an iterator class for hashes.
Definition: QC_HashPairIterator.dox.h:32
<hash>::size
int size()
Returns the number of keys in the hash.
<hash>::iterator
AbstractIterator iterator()
Returns a HashIterator object for the hash.
Qore::list
list list(...)
Returns a list of the arguments passed at the top level.
<hash>::lastValue
any lastValue()
Returns the value assigned to the last key in the hash if any or NOTHING if the hash has no keys...
<hash>::keyIterator
HashKeyIterator keyIterator()
Returns a HashKeyIterator object for the hash.
<hash>::typeCode
int typeCode()
Returns Qore::NT_HASH.
<hash>::lastKey
*string lastKey()
Returns the last key name in the hash or NOTHING if the hash has no keys.
<hash>::firstKey
*string firstKey()
Returns the first key name in the hash or NOTHING if the hash has no keys.
Qore::HashListIterator
This class an iterator class for hashes of lists as returned by Qore::SQL::Datasource::select() and Q...
Definition: QC_HashListIterator.dox.h:32
<hash>::empty
bool empty()
Returns True if the hash has no keys, False if it does.
<hash>::pairIterator
HashPairIterator pairIterator()
Returns a HashPairIterator object for the hash.
<hash>::compareKeys
bool compareKeys(hash oh)
Returns True if the hash argument passed has the same keys in the same order as the current hash...
<hash>
Methods in this pseudo-class can be executed on hash values.
Definition: Pseudo_QC_Hash.dox.h:5
<hash>::hasKeyValue
bool hasKeyValue(softstring key)
Returns True if the key exists and is assigned to a value, False if not.
Qore::hash
hash hash(object obj)
Returns a hash of an object&#39;s members.
Qore::HashKeyIterator
This class an iterator class for hashes.
Definition: QC_HashKeyIterator.dox.h:32
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10