get_value Interface

public interface get_value

Getter functions to manipulate TOML arrays


Module Procedures

private subroutine get_elem_table(array, pos, ptr, stat, origin)

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

type(toml_table), intent(out), pointer :: ptr

Pointer to child table

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_array(array, pos, ptr, stat, origin)

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

type(toml_array), intent(out), pointer :: ptr

Pointer to child array

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_keyval(array, pos, ptr, stat, origin)

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

type(toml_keyval), intent(out), pointer :: ptr

Pointer to child value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_string(array, pos, val, stat, origin)

Retrieve TOML value as deferred-length character

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

character(kind=tfc, len=:), intent(out), allocatable :: val

String value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_float_sp(array, pos, val, stat, origin)

Retrieve TOML value as single precision floating point number

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

real(kind=tf_sp), intent(out) :: val

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_float_dp(array, pos, val, stat, origin)

Retrieve TOML value as double precision floating point number

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

real(kind=tf_dp), intent(out) :: val

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_int_i1(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

integer(kind=tf_i1), intent(out) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_int_i2(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

integer(kind=tf_i2), intent(out) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_int_i4(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

integer(kind=tf_i4), intent(out) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_int_i8(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

integer(kind=tf_i8), intent(out) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_bool(array, pos, val, stat, origin)

Retrieve TOML value as boolean

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

logical, intent(out) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_elem_value_datetime(array, pos, val, stat, origin)

Retrieve TOML value as datetime

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

type(toml_datetime), intent(out) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_float_sp(array, val, stat, origin)

Retrieve TOML value as single precision floating point number

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

real(kind=tf_sp), intent(out), allocatable :: val(:)

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_float_dp(array, val, stat, origin)

Retrieve TOML value as double precision floating point number

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

real(kind=tf_dp), intent(out), allocatable :: val(:)

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_int_i1(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer(kind=tf_i1), intent(out), allocatable :: val(:)

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_int_i2(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer(kind=tf_i2), intent(out), allocatable :: val(:)

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_int_i4(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer(kind=tf_i4), intent(out), allocatable :: val(:)

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_int_i8(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

integer(kind=tf_i8), intent(out), allocatable :: val(:)

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_bool(array, val, stat, origin)

Retrieve TOML value as boolean

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

logical, intent(out), allocatable :: val(:)

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine get_array_value_datetime(array, val, stat, origin)

Retrieve TOML value as datetime

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

type(toml_datetime), intent(out), allocatable :: val(:)

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure