MONC
Private Member Functions | List of all members
configuration_parser_mod::get_data_value_by_field_name Interface Reference

Private Member Functions

type(data_values_type) function, pointer get_data_value_from_hashmap_by_field_name (collection, field_name)
 Retrieves the data value (wrapper) by field name or null if no entry was found in the provided collection. More...
 
type(data_values_type) function, pointer get_data_value_from_map_by_field_name (collection, field_name)
 Retrieves the data value (wrapper) by field name or null if no entry was found in the provided collection. More...
 

Detailed Description

Definition at line 30 of file configurationparser.F90.

Member Function/Subroutine Documentation

◆ get_data_value_from_hashmap_by_field_name()

type(data_values_type) function, pointer configuration_parser_mod::get_data_value_by_field_name::get_data_value_from_hashmap_by_field_name ( type(hashmap_type), intent(inout)  collection,
character(len=*), intent(in)  field_name 
)
private

Retrieves the data value (wrapper) by field name or null if no entry was found in the provided collection.

Parameters
collectionA hashmap to search for this data value in
field_nameThe field name to search for
Returns
The corresponding data value or null if none is found

Definition at line 1170 of file configurationparser.F90.

1171  type(hashmap_type), intent(inout) :: collection
1172  character(len=*), intent(in) :: field_name
1173  type(data_values_type), pointer :: get_data_value_from_hashmap_by_field_name
1174 
1175  class(*), pointer :: generic
1176 
1177  generic=>c_get_generic(collection, field_name)
1178  if (associated(generic)) then
1179  select type(generic)
1180  type is (data_values_type)
1181  get_data_value_from_hashmap_by_field_name=>generic
1182  end select
1183  else
1184  get_data_value_from_hashmap_by_field_name=>null()
1185  end if

◆ get_data_value_from_map_by_field_name()

type(data_values_type) function, pointer configuration_parser_mod::get_data_value_by_field_name::get_data_value_from_map_by_field_name ( type(map_type), intent(inout)  collection,
character(len=*), intent(in)  field_name 
)
private

Retrieves the data value (wrapper) by field name or null if no entry was found in the provided collection.

Parameters
collectionA map to search for this data value in
field_nameThe field name to search for
Returns
The corresponding data value or null if none is found

Definition at line 1192 of file configurationparser.F90.

1193  type(map_type), intent(inout) :: collection
1194  character(len=*), intent(in) :: field_name
1195  type(data_values_type), pointer :: get_data_value_from_map_by_field_name
1196 
1197  class(*), pointer :: generic
1198 
1199  generic=>c_get_generic(collection, field_name)
1200  if (associated(generic)) then
1201  select type(generic)
1202  type is (data_values_type)
1203  get_data_value_from_map_by_field_name=>generic
1204  end select
1205  else
1206  get_data_value_from_map_by_field_name=>null()
1207  end if

The documentation for this interface was generated from the following file: