tem_stringKeyValuePair_module Module


Uses

  • module~~tem_stringkeyvaluepair_module~~UsesGraph module~tem_stringkeyvaluepair_module tem_stringKeyValuePair_module module~env_module env_module module~tem_stringkeyvaluepair_module->module~env_module aotus_module aotus_module module~env_module->aotus_module flu_binding flu_binding module~env_module->flu_binding iso_fortran_env iso_fortran_env module~env_module->iso_fortran_env mpi mpi module~env_module->mpi

Used by

  • module~~tem_stringkeyvaluepair_module~~UsedByGraph module~tem_stringkeyvaluepair_module tem_stringKeyValuePair_module module~tem_bc_module tem_bc_module module~tem_bc_module->module~tem_stringkeyvaluepair_module module~tem_varmap_module tem_varMap_module module~tem_bc_module->module~tem_varmap_module module~tem_varmap_module->module~tem_stringkeyvaluepair_module module~hvs_output_module hvs_output_module module~hvs_output_module->module~tem_varmap_module module~tem_restart_module tem_restart_module module~hvs_output_module->module~tem_restart_module module~tem_convergence_module tem_convergence_module module~tem_convergence_module->module~tem_varmap_module module~tem_depend_module tem_depend_module module~tem_depend_module->module~tem_varmap_module module~tem_operation_var_module tem_operation_var_module module~tem_operation_var_module->module~tem_varmap_module module~tem_restart_module->module~tem_varmap_module module~tem_tracking_module tem_tracking_module module~tem_tracking_module->module~tem_varmap_module module~tem_tracking_module->module~hvs_output_module module~tem_simcontrol_module tem_simControl_module module~tem_tracking_module->module~tem_simcontrol_module module~tem_abortcriteria_module tem_abortCriteria_module module~tem_abortcriteria_module->module~tem_convergence_module module~tem_derived_module tem_derived_module module~tem_derived_module->module~tem_operation_var_module module~tem_general_module tem_general_module module~tem_general_module->module~tem_restart_module module~tem_general_module->module~tem_abortcriteria_module module~tem_general_module->module~tem_simcontrol_module module~tem_ini_condition_module tem_ini_condition_module module~tem_ini_condition_module->module~tem_depend_module module~tem_simcontrol_module->module~tem_convergence_module module~tem_simcontrol_module->module~tem_abortcriteria_module

Interfaces

public interface init

initialize the dynamic array

public interface truncate

truncate the array, meaning cut off the trailing empty entries

public interface empty

empty the entries without changing arrays

public interface destroy

destroy the dynamic array

public interface placeat

insert an element at a given position

  • private subroutine placeat_ga_stringkeyvaluepair(me, val, pos, length)

    adds the value to a given position inside the growing array.

    if the requested position is outside the current array bounds, the array will be resized accordingly. if it is inside the current array bounds, the element at the requested position will be replaced.

    Arguments

    Type IntentOptional Attributes Name
    type(grw_stringkeyvaluepairarray_type) :: me
    type(tem_stringKeyValuePair_type), intent(in) :: val
    integer, intent(in) :: pos
    integer, intent(in), optional :: length

    optional length to expand the array

  • private subroutine placeat_ga_stringkeyvaluepair_vec(me, val, pos, length)

    adds the values starting from a given position inside the growing array.

    if the requested position is outside the current array bounds, the array will be resized accordingly. if it is inside the current array bounds, the elements starting from the requested position will be replaced up to the element at position pos + size(val) - 1.

    Arguments

    Type IntentOptional Attributes Name
    type(grw_stringkeyvaluepairarray_type) :: me
    type(tem_stringKeyValuePair_type), intent(in) :: val(:)
    integer, intent(in) :: pos
    integer, intent(in), optional :: length

    optional length to expand the array

public interface append

append a value to the dynamic array and return its position.

private interface operator (==)

  • private pure function tem_stringKVP_equals(me, other) result(res)

    Indicates whether this instance and a specified object are equal.

    Arguments

    Type IntentOptional Attributes Name
    type(tem_stringKeyValuePair_type), intent(in) :: me

    THe current instance.

    type(tem_stringKeyValuePair_type), intent(in) :: other

    The instance to compare with the current instance.

    Return Value logical

    .true. when both instances are equal, otherwise .false.

private interface operator (/=)

  • private pure function tem_stringKVP_notEquals(me, other) result(res)

    Indicates whether this instance and a specified object are equal.

    Arguments

    Type IntentOptional Attributes Name
    type(tem_stringKeyValuePair_type), intent(in) :: me

    THe current instance.

    type(tem_stringKeyValuePair_type), intent(in) :: other

    The instance to compare with the current instance.

    Return Value logical

    .true. when both instances are equal, otherwise .false.

private interface expand

increase the size of the container for the array.


Derived Types

type, public ::  tem_stringKeyValuePair_type

Defines a key/value pair of strings that can be set or retrieved.

Components

Type Visibility Attributes Name Initial
character(len=labellen), public :: key

The key in the key/value pair. It's length is limited to /ref labellen.

character(len=labellen), public :: value

The value in the key/value pair. It's length is limited to /ref labellen.

growing array type for type(tem_stringkeyvaluepair_type)

Components

Type Visibility Attributes Name Initial
integer, public :: nvals = 0
integer, public :: containersize = 0
type(tem_stringKeyValuePair_type), public, allocatable :: val(:)

Functions

private pure function tem_stringKVP_equals(me, other) result(res)

Indicates whether this instance and a specified object are equal.

Arguments

Type IntentOptional Attributes Name
type(tem_stringKeyValuePair_type), intent(in) :: me

THe current instance.

type(tem_stringKeyValuePair_type), intent(in) :: other

The instance to compare with the current instance.

Return Value logical

.true. when both instances are equal, otherwise .false.

private pure function tem_stringKVP_notEquals(me, other) result(res)

Indicates whether this instance and a specified object are equal.

Arguments

Type IntentOptional Attributes Name
type(tem_stringKeyValuePair_type), intent(in) :: me

THe current instance.

type(tem_stringKeyValuePair_type), intent(in) :: other

The instance to compare with the current instance.

Return Value logical

.true. when both instances are equal, otherwise .false.


Subroutines

private subroutine init_ga_stringkeyvaluepair(me, length)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type), intent(out) :: me
integer, intent(in), optional :: length

private subroutine destroy_ga_stringkeyvaluepair(me)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type), intent(inout) :: me

private subroutine truncate_ga_stringkeyvaluepair(me)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me

private subroutine empty_ga_stringkeyvaluepair(me)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me

private subroutine placeat_ga_stringkeyvaluepair(me, val, pos, length)

adds the value to a given position inside the growing array.

Read more…

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me
type(tem_stringKeyValuePair_type), intent(in) :: val
integer, intent(in) :: pos
integer, intent(in), optional :: length

optional length to expand the array

private subroutine placeat_ga_stringkeyvaluepair_vec(me, val, pos, length)

adds the values starting from a given position inside the growing array.

Read more…

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me
type(tem_stringKeyValuePair_type), intent(in) :: val(:)
integer, intent(in) :: pos
integer, intent(in), optional :: length

optional length to expand the array

private subroutine append_ga_stringkeyvaluepair(me, val, length)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me
type(tem_stringKeyValuePair_type), intent(in) :: val
integer, intent(in), optional :: length

optional length to expand the array

private subroutine append_ga_stringkeyvaluepair_vec(me, val, length)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me
type(tem_stringKeyValuePair_type), intent(in) :: val(:)
integer, intent(in), optional :: length

optional length to expand the array

private subroutine expand_ga_stringkeyvaluepair(me, pos, length)

Arguments

Type IntentOptional Attributes Name
type(grw_stringkeyvaluepairarray_type) :: me
integer, intent(in), optional :: pos
integer, intent(in), optional :: length

optional length to expand the array