stdlib_hashmap_wrappers#
See also the specification page: stdlib_hashmap_wrappers and stdlib_hashmaps.
stdlib_hashmap_wrappers (module)#
Types
key_type (type)#
-
key_type (type) A wrapper type for the key’s true type
- Attributes:
- valueinteger(kind=int8), allocatable, dimension(:)
Interfaces
get (interface)#
-
get (interface) - Procedures:
operator(==) (interface)#
-
operator(==) (interface) - Procedures:
set (interface)#
-
set (interface) - Procedures:
Procedures
equal_keys (function)#
-
function equal_keys(key1, key2) -> test Compares two keys for equality (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- key1type(key_type), intent(in)
- key2type(key_type), intent(in)
- Returns:
- testlogical
Arguments
key1 : the first key key2 : the second key
fnv_1_hasher (function)#
-
pure function fnv_1_hasher(key) -> fnv_1_hasher Hashes a key with the FNV_1 algorithm
- Arguments:
- keytype(key_type), intent(in)
- Returns:
- fnv_1_hasherinteger(kind=int_hash)
Arguments
key : the key to be hashed
fnv_1a_hasher (function)#
-
pure function fnv_1a_hasher(key) -> fnv_1a_hasher Hashes a key with the FNV_1a algorithm (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- keytype(key_type), intent(in)
- Returns:
- fnv_1a_hasherinteger(kind=int_hash)
Arguments
key : the key to be hashed
seeded_nmhash32_hasher (function)#
-
pure function seeded_nmhash32_hasher(key) -> seeded_nmhash32_hasher Hashes a key with the NMHASH32 hash algorithm (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- keytype(key_type), intent(in)
- Returns:
- seeded_nmhash32_hasherinteger(kind=int_hash)
Arguments
key : the key to be hashed
seeded_nmhash32x_hasher (function)#
-
pure function seeded_nmhash32x_hasher(key) -> seeded_nmhash32x_hasher Hashes a key with the NMHASH32X hash algorithm (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- keytype(key_type), intent(in)
- Returns:
- seeded_nmhash32x_hasherinteger(kind=int_hash)
Arguments
key : the key to be hashed
seeded_water_hasher (function)#
-
pure function seeded_water_hasher(key) -> seeded_water_hasher Hashes a key with the waterhash algorithm (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- keytype(key_type), intent(in)
- Returns:
- seeded_water_hasherinteger(kind=int_hash)
Arguments
key : the key to be hashed
copy_key (subroutine)#
-
pure subroutine copy_key(old_key, new_key) Copies the contents of the key, old_key, to the key, new_key (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- old_keytype(key_type), intent(in)
- new_keytype(key_type), intent(out)
Arguments
old_key : the input key new_key : the output copy of old_key
free_key (subroutine)#
-
subroutine free_key(key) Frees the memory in a key (Specifications: stdlib_hashmap_wrappers and stdlib_hashmaps)
- Arguments:
- keytype(key_type), intent(inout)
Arguments
key : the key
get_char_key (subroutine)#
-
subroutine get_char_key(key, value) Gets the contents of the key as a CHARACTER string
- Arguments:
- keytype(key_type), intent(in)
- valuecharacter(len=:), allocatable, intent(out)
Arguments
key : the input key value : the contents of key mapped to a CHARACTER string
get_int8_key (subroutine)#
-
subroutine get_int8_key(key, value) Gets the contents of the key as an INTEGER(INT8) vector
- Arguments:
- keytype(key_type), intent(in)
- valueinteger(kind=int8), allocatable, intent(out), dimension(:)
Arguments
key : the input key value : the contents of key mapped to an INTEGER(INT8) vector
get_int32_key (subroutine)#
-
pure subroutine get_int32_key(key, value) Gets the contents of the key as an INTEGER(INT32) vector
- Arguments:
- keytype(key_type), intent(in)
- valueinteger(kind=int32), allocatable, intent(out), dimension(:)
Arguments
key : the input key value : the contents of key mapped to an INTEGER(INT32) vector
set_char_key (subroutine)#
-
subroutine set_char_key(key, value) Sets the contents of the key from a CHARACTER string
- Arguments:
- keytype(key_type), intent(out)
- valuecharacter(len=*), intent(in)
Arguments
key : the output key value : the input CHARACTER string
set_int8_key (subroutine)#
-
subroutine set_int8_key(key, value) Sets the contents of the key from an INTEGER(INT8) vector
- Arguments:
- keytype(key_type), intent(out)
- valueinteger(kind=int8), intent(in), dimension(:)
Arguments
key : the output key value : the input INTEGER(INT8) vector
set_int32_key (subroutine)#
-
pure subroutine set_int32_key(key, value) Sets the contents of the key from an INTEGER(INT32) vector
- Arguments:
- keytype(key_type), intent(out)
- valueinteger(kind=int32), intent(in), dimension(:)
Arguments
key : the output key value : the input INTEGER(INT32) vector