fhash_key_t Derived Type

type, public, abstract :: fhash_key_t

Abstract base type for defining hash keys


Contents


Type-Bound Procedures

procedure(hash_proc), public, deferred :: hash

  • pure function hash_proc(key) result(hash) Prototype

    Arguments

    Type IntentOptional 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 IntentOptional 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 IntentOptional Attributes Name
    class(fhash_key_t), intent(in) :: key

    Return Value character(len=:), allocatable

generic, public :: operator(==) => equals

  • private pure function key_equal_int64_1d(key1, key2) result(keys_equal)

    Check if two keys are equal

    Arguments

    Type IntentOptional Attributes Name
    class(fhash_key_int64_1d_t), intent(in) :: key1
    class(fhash_key_t), intent(in) :: key2

    Return Value logical