Loading...
Searching...
No Matches
Argument

Definition

Argument module

Data Types

interface  arg
 Represents the extended type for method argument . More...

Methods

◆ any_assign_argument()

subroutine any_assign_argument ( class(arg), intent(inout) lhs,
class(*), intent(in) rhs )
private

Overloading of the assigment procedure.

Parameters
[in,out]lhsclass(arg)
[in]rhsclass(*), unlimited polymorphic

Remarks

The field value is an unlimited polymorphic component It accepts any value of any type.

Examples

The following example uses the assigment(=) the set the value of the argument

type(arg) :: a
a = 5.0_r8

Remarks

Definition at line 125 of file Argument.f90.

◆ to_string()

pure character(:) function, allocatable to_string ( class(arg), intent(in) this)
private

Returns a string that represents the current object.

Returns
character(:), allocatable

A string that represents the current object.

Examples

character(:), allocatable :: s
type(arg) :: a
a = arg(5.0_r8)
s = a%to_string()

Remarks

Definition at line 155 of file Argument.f90.