MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
HashTable.f90 File Reference

Go to the source code of this file.

Data Types

type  hashtablemodule::nodetype
type  hashtablemodule::buckettype
type  hashtablemodule::hashtabletype

Modules

module  hashtablemodule
 A chaining hash map for integers.

Functions/Subroutines

subroutine, public hashtablemodule::hash_table_cr (map)
 Create a hash table.
subroutine, public hashtablemodule::hash_table_da (map)
 Deallocate the hash table.
subroutine hashtablemodule::ht_add (this, k, v)
 Associate the given key and value.
type(nodetype) function, pointer hashtablemodule::find_node (this, k)
 Find the node containing the given key.
integer(i4b) function hashtablemodule::ht_get (this, k)
 Get the value for the given key if it exists, otherwise return zero.
subroutine hashtablemodule::list_cr (list, k, v)
 Create a list with the given key/value pair.
subroutine hashtablemodule::list_add (this, k, v)
 Add a key/value pair to the list.
subroutine hashtablemodule::list_da (list)
 Deallocate the list.
integer(i4b) function hashtablemodule::hash (k)
 Map a character string to an integer.

Variables

integer, parameter, private hashtablemodule::hash_size = 4993
integer, parameter, private hashtablemodule::multiplier = 31