fhash_tbl Module



Contents


Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: FHASH_INTERNAL_ERROR = -4

This condition should be unreachable by the public interface

integer, public, parameter :: FHASH_EMPTY_TABLE = -3

Error flag for operating on an unallocated table

integer, public, parameter :: FHASH_FOUND_WRONG_TYPE = -2

Error flag for when retrieved data-type does not match that expected by the invoked getter function (get_int32,get_int63,get_float,'get_double,get_char`)

integer, public, parameter :: FHASH_KEY_NOT_FOUND = -1

Error flag for when specified key is not found in the hash table


Derived Types

type, public ::  fhash_tbl_t

Components

Type Visibility Attributes Name Initial
type(fhash_node_t), public, allocatable :: buckets(:)

Finalizations Procedures

final :: fhash_tbl_cleanup

Type-Bound Procedures

procedure , public , :: allocate => fhash_tbl_allocate Subroutine
procedure , public , :: unset => fhash_tbl_unset Subroutine
procedure , public , :: check_key => fhash_tbl_check_key Subroutine
procedure , public , :: stats => fhash_tbl_stats Subroutine
procedure , public , :: fhash_tbl_set_scalar Subroutine
generic, public , :: set => fhash_tbl_set_scalar
procedure , public , :: fhash_tbl_set_scalar_ptr Subroutine
generic, public , :: set_ptr => fhash_tbl_set_scalar_ptr
procedure , public , :: fhash_tbl_get_int64 Subroutine
procedure , public , :: fhash_tbl_get_int32 Subroutine
procedure , public , :: fhash_tbl_get_double Subroutine
procedure , public , :: fhash_tbl_get_float Subroutine
procedure , public , :: fhash_tbl_get_logical Subroutine
procedure , public , :: fhash_tbl_get_char Subroutine
procedure , public , :: fhash_tbl_get_raw Subroutine
procedure , public , :: fhash_tbl_get_data Subroutine
generic, public , :: get => fhash_tbl_get_int32, fhash_tbl_get_int64
generic, public , :: get => fhash_tbl_get_float, fhash_tbl_get_double
generic, public , :: get => fhash_tbl_get_char, fhash_tbl_get_logical
generic, public , :: get => fhash_tbl_get_data
generic, public , :: get_raw => fhash_tbl_get_raw
procedure , public , :: fhash_tbl_get_int64_ptr Subroutine
procedure , public , :: fhash_tbl_get_int32_ptr Subroutine
procedure , public , :: fhash_tbl_get_double_ptr Subroutine
procedure , public , :: fhash_tbl_get_float_ptr Subroutine
procedure , public , :: fhash_tbl_get_logical_ptr Subroutine
procedure , public , :: fhash_tbl_get_char_ptr Subroutine
procedure , public , :: fhash_tbl_get_raw_ptr Subroutine
generic, public , :: get_ptr => fhash_tbl_get_int32_ptr, fhash_tbl_get_int64_ptr
generic, public , :: get_ptr => fhash_tbl_get_float_ptr, fhash_tbl_get_double_ptr
generic, public , :: get_ptr => fhash_tbl_get_char_ptr, fhash_tbl_get_logical_ptr
generic, public , :: get_raw_ptr => fhash_tbl_get_raw_ptr