is_var_present Function

public function is_var_present(this, var_name, rc) result(isPresent)

Type Bound

FileMetadataUtils

Arguments

Type IntentOptional Attributes Name
class(FileMetadataUtils), intent(inout) :: this
character(len=*), intent(in) :: var_name
integer, intent(out), optional :: rc

Return Value logical


Calls

proc~~is_var_present~~CallsGraph proc~is_var_present FileMetadataUtils%is_var_present none~get_variable FileMetadata%get_variable proc~is_var_present->none~get_variable none~at~5 StringVariableMap%at none~get_variable->none~at~5 proc~mapl_return MAPL_Return none~get_variable->proc~mapl_return none~find~2 StringVariableMap%find none~at~5->none~find~2 at at proc~mapl_return->at insert insert proc~mapl_return->insert proc~mapl_throw_exception MAPL_throw_exception proc~mapl_return->proc~mapl_throw_exception

Source Code

   function is_var_present(this,var_name,rc) result(isPresent)
      class (FileMetadataUtils), intent(inout) :: this
      character(len=*), intent(in) :: var_name
      integer, optional, intent(out) :: rc

      logical :: isPresent
      class(Variable), pointer :: var
      _UNUSED_DUMMY(rc)

      var => this%get_variable(var_name)
      isPresent = associated(var)

   end function is_var_present