Generic interface to hash table get functions.
Returns pointer to element in hash table by index loc. On error,
value will point to null.
The function returns the following error codes:
E_BOUNDS if the index is outside the array bounds.E_NULL if the hash table value pointer is not associated.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hash_table_type), | intent(inout) | :: | hash_table | Hash table type. | ||
| integer, | intent(in) | :: | loc | Hash value index. | ||
| class(*), | intent(out), | pointer | :: | value | Associated value. | 
Returns pointer to element in hash table by key. On error, value
will point to null. The intrinsic findloc() should be sufficient for
a small number of elements. For larger hash tables, buckets have to be
added.
The function returns the following error codes:
E_NOT_FOUND if the key was not found.E_NULL if the hash table value pointer is not associated.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hash_table_type), | intent(inout) | :: | hash_table | Hash table type. | ||
| character(len=*), | intent(in) | :: | key | Hash table key. | ||
| class(*), | intent(out), | pointer | :: | value | Associated value. |