type, public, abstract :: fhash_key_t
Abstract base type for defining hash keys
Type-Bound Procedures
procedure(hash_proc), public, deferred :: hash
-
pure function hash_proc(key) result(hash)
Prototype
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(fhash_key_t),
|
intent(in) |
|
|
:: |
key |
|
Return Value
integer(kind=int64)
procedure(equality_proc), public, deferred :: equals
-
pure function equality_proc(key1, key2) result(keys_equal)
Prototype
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(fhash_key_t),
|
intent(in) |
|
|
:: |
key1 |
|
class(fhash_key_t),
|
intent(in) |
|
|
:: |
key2 |
|
Return Value
logical
procedure(to_string_proc), public, deferred :: to_string
-
function to_string_proc(key) result(str)
Prototype
Arguments
Type |
Intent | Optional | Attributes |
|
Name |
|
class(fhash_key_t),
|
intent(in) |
|
|
:: |
key |
|
Return Value
character(len=:), allocatable
generic, public :: operator(==) => equals