Assignment operator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(command_line_argument), | intent(inout) | :: | lhs |
Left hand side. |
||
type(command_line_argument), | intent(in) | :: | rhs |
Rigth hand side. |
elemental subroutine cla_assign_cla(lhs, rhs) !< Assignment operator. class(command_line_argument), intent(inout) :: lhs !< Left hand side. type(command_line_argument), intent(in) :: rhs !< Rigth hand side. ! object members call lhs%assign_object(rhs) ! command_line_argument members if (allocated(rhs%switch )) lhs%switch = rhs%switch if (allocated(rhs%switch_ab)) lhs%switch_ab = rhs%switch_ab if (allocated(rhs%act )) lhs%act = rhs%act if (allocated(rhs%def )) lhs%def = rhs%def if (allocated(rhs%nargs )) lhs%nargs = rhs%nargs if (allocated(rhs%choices )) lhs%choices = rhs%choices if (allocated(rhs%val )) lhs%val = rhs%val if (allocated(rhs%envvar )) lhs%envvar = rhs%envvar lhs%is_required = rhs%is_required lhs%is_positional = rhs%is_positional lhs%position = rhs%position lhs%is_passed = rhs%is_passed lhs%is_hidden = rhs%is_hidden lhs%is_val_required = rhs%is_val_required endsubroutine cla_assign_cla