Inherits arg_base.
Represents the extended type for method argument .
arg is the extended class of arg, which also contains bound procedures.
Initializes a new instance of the arg class
type(arg) function arg(class(*) val)
[in] | val |
Examples
Remarks
type(arg) function arg(class(*) val, character(*) display)
[in] | val | The value to be stored in the arg type for later reuse. It can be of any type, inrinsic or not. |
[in] | display | A charater array that describes the argument. The content of variable is intended to be understood by humans. |
Examples
Remarks
type(arg) function arg(class(*) val, type(string) display)
[in] | val | The value to be stored in the arg type for later reuse. It can be of any type, inrinsic or not. |
[in] | display | A string that describes the argument. The content of variable is intended to be understood by humans. |
Examples
Remarks
Definition at line 67 of file Argument.f90.
Variables | |
character(:), allocatable | display |
String characterizing the argument. If not specified, the numeric value is stringified. | |
class(*), allocatable | value |
Unlimited polymorphic value of the argument. This property is used to store any value of any type. | |
generic assignment | ( | class(arg), intent(inout) | lhs, |
class(*), intent(in) | rhs ) |
Overloading of the assigment procedure.
[in,out] | lhs | class(arg) |
[in] | rhs | class(*), 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
Definition at line 63 of file Argument.f90.
procedure, pass, public to_string | ( | class(arg), intent(in) | this | ) |
Returns a string that represents the current object.
Examples
Definition at line 64 of file Argument.f90.