MODFLOW 6  version 6.7.0.dev0
USGS Modular Hydrologic Model
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. More...
 
subroutine, public hashtablemodule::hash_table_da (map)
 Deallocate the hash table. More...
 
subroutine hashtablemodule::ht_add (this, k, v)
 Associate the given key and value. More...
 
type(nodetype) function, pointer hashtablemodule::find_node (this, k)
 Find the node containing the given key. More...
 
integer(i4b) function hashtablemodule::ht_get (this, k)
 Get the value for the given key if it exists, otherwise return zero. More...
 
subroutine hashtablemodule::list_cr (list, k, v)
 Create a list with the given key/value pair. More...
 
subroutine hashtablemodule::list_add (this, k, v)
 Add a key/value pair to the list. More...
 
subroutine hashtablemodule::list_da (list)
 Deallocate the list. More...
 
integer(i4b) function hashtablemodule::hash (k)
 Map a character string to an integer. More...
 

Variables

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