![]() |
MODFLOW 6
version 6.7.0.dev3
USGS Modular Hydrologic Model
|
Data Types | |
| type | ptrhashtabletype |
| HashTable that stores void pointer items. More... | |
Functions/Subroutines | |
| class(iteratortype) function, allocatable | iterator (this) |
| An iterator used to iterate through the HashTable. More... | |
| subroutine | add (this, key, val) |
| Add a void pointer to the HashTable. More... | |
| class(*) function, pointer | get (this, key) |
| Get a void pointer from the HashTable using a key. More... | |
| logical function | contains (this, key) |
| Boolean indicating if an item exists in the hashtable. More... | |
| integer(i4b) function | count (this) |
| The nummer of items in the HashTable. More... | |
| subroutine | clear (this) |
| Clears the HashTable. More... | |
| integer(i4b) function | compute_hash (key) |
| Compute the hash of a key. More... | |
Variables | |
| integer(i4b), parameter, private | hash_size = 4993 |
| integer(i4b), parameter, private | multiplier = 31 |
| integer(i4b), parameter, public | bucket_size = 1000 |
|
private |
| [in] | key | key of the item to be added |
| [in] | val | value to be added |
Definition at line 48 of file PtrHashTable.f90.

|
private |
Loops over all the buckets and clears them.
Definition at line 113 of file PtrHashTable.f90.
|
private |
The hash produced will be in the interval 1 - BUCKET_SIZE
| [in] | key | the key |
Definition at line 131 of file PtrHashTable.f90.

|
private |
| [in] | key | key of the item to retrieve |
Definition at line 89 of file PtrHashTable.f90.
|
private |
Definition at line 102 of file PtrHashTable.f90.
|
private |
| [in] | key | key of the item to retrieve |
Definition at line 71 of file PtrHashTable.f90.

|
private |
Definition at line 38 of file PtrHashTable.f90.
| integer(i4b), parameter, public ptrhashtablemodule::bucket_size = 1000 |
Definition at line 15 of file PtrHashTable.f90.
|
private |
Definition at line 13 of file PtrHashTable.f90.
|
private |
Definition at line 14 of file PtrHashTable.f90.