water_hash 接口

public interface water_hash

WATER_HASH 接口 (规范)


函数

private elemental module function character_water_hash(key, seed) result(hash_code)

默认字符字符串键的 WATER 哈希函数

参数

类型 意图可选 属性 名称
character(len=*), intent(in) :: key
integer(kind=int64), intent(in) :: seed

返回值 integer(kind=int_hash)

private pure module function int16_water_hash(key, seed) result(hash_code)

kind 为 int16 的秩 1 数组键的 WATER HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int16), intent(in) :: key(0:)
integer(kind=int64), intent(in) :: seed

返回值 integer(kind=int_hash)

private pure module function int32_water_hash(key, seed) result(hash_code)

kind 为 int32 的秩 1 数组键的 WATER HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int32), intent(in) :: key(0:)
integer(kind=int64), intent(in) :: seed

返回值 integer(kind=int_hash)

private pure module function int64_water_hash(key, seed) result(hash_code)

kind 为 int64 的秩 1 数组键的 WATER HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int64), intent(in) :: key(0:)
integer(kind=int64), intent(in) :: seed

返回值 integer(kind=int_hash)

private pure module function int8_water_hash(key, seed) result(hash_code)

kind 为 int8 的秩 1 数组键的 WATER HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int8), intent(in) :: key(0:)
integer(kind=int64), intent(in) :: seed

返回值 integer(kind=int_hash)