dictionary_mod Module

module~~dictionary_mod~~UsesGraph module~dictionary_mod dictionary_mod module~array_list_mod array_list_mod module~array_list_mod->module~dictionary_mod module~data_set_mod data_set_mod module~array_list_mod->module~data_set_mod module~abstract_container_mod abstract_container_mod module~abstract_container_mod->module~dictionary_mod module~abstract_container_mod->module~array_list_mod module~abstract_container_mod->module~data_set_mod module~list_mod list_mod module~abstract_container_mod->module~list_mod module~ordered_mod ordered_mod module~abstract_container_mod->module~ordered_mod module~iterator_mod iterator_mod module~abstract_container_mod->module~iterator_mod module~deque_mod deque_mod module~abstract_container_mod->module~deque_mod module~iterable_mod iterable_mod module~abstract_container_mod->module~iterable_mod module~data_set_mod->module~dictionary_mod module~list_mod->module~array_list_mod module~ordered_mod->module~array_list_mod module~queue_mod queue_mod module~ordered_mod->module~queue_mod module~iterator_mod->module~array_list_mod module~iterator_mod->module~ordered_mod module~iterator_mod->module~iterable_mod module~deque_mod->module~list_mod module~queue_mod->module~deque_mod module~countable_mod countable_mod module~countable_mod->module~data_set_mod module~countable_mod->module~ordered_mod module~iterable_mod->module~ordered_mod module~iterable_mod->module~countable_mod iso_fortran_env iso_fortran_env iso_fortran_env->module~abstract_container_mod
Help

Provides an abstract type for mapping data structures. These are data structures which consist of key-value pairs.

Used By

module~~dictionary_mod~~UsedByGraph module~dictionary_mod dictionary_mod module~multimap_mod multimap_mod module~dictionary_mod->module~multimap_mod module~map_mod map_mod module~dictionary_mod->module~map_mod module~map_mod->module~multimap_mod
Help

Abstract Interfaces

abstract interface

  • private pure function keys_func(this)

    Arguments

    Type IntentOptional AttributesName
    class(dictionary), intent(in) :: this

    Return Value type(array_list)

    A list containing all of the keys in this dictionary

abstract interface

  • private pure function values_func(this)

    Arguments

    Type IntentOptional AttributesName
    class(dictionary), intent(in) :: this

    Return Value type(array_list)

    A list containing all of the values in this dictionary, stored in the same order as their corresponding key would be were keys called

abstract interface

  • private function set_func(this, key, val)

    Arguments

    Type IntentOptional AttributesName
    class(dictionary), intent(inout) :: this
    class(*), intent(in) :: key

    The key whose value is to be set

    class(*), intent(in) :: val

    The value to be assigned to the specified key

    Return Value real

abstract interface

  • private pure function type_func(this)

    Arguments

    Type IntentOptional AttributesName
    class(dictionary), intent(in) :: this

    Return Value class(container), allocatable

    A container of the dynamic type used to store this dictionary's keys or values.


Derived Types

type, public, abstract, extends(data_set) :: dictionary

Type-Bound Procedures

procedure(keys_func), public, deferred :: keys

Returns a list of the keys in this dictionary

procedure(values_func), public, deferred :: values

Returns a list of the values stored in this dictionary, in the same order as the corresponding keys are returned when keys is called

procedure(set_func), public, deferred :: set

Sets the given key to the give value

procedure(type_func), public, deferred :: key_type

Returns a container of the dynamics type used to store keys

procedure(type_func), public, deferred :: value_type

Returns a container of dynamics the type used to store values

Description

An abstract type for mapping data structures. These are data structures which consist of key-value pairs. Examples of such structures are dictionaries in Python or a hash variable in Perl.