newTestRealArrVal_name Function

public function newTestRealArrVal_name(ts_name) result(new_ts)

Construct new TestRealArrVal given a name.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: ts_name

Name of the new TestRealArrVal object.

Return Value type(TestRealArrVal)

Return new TestRealArrVal object.


Contents


Source Code

function newTestRealArrVal_name(ts_name) result(new_ts)
    !! Construct new TestRealArrVal given a name.

    character(len=*), intent(in) :: ts_name
        !! Name of the new TestRealArrVal object.
    type(TestRealArrVal) :: new_ts
        !! Return new TestRealArrVal object.

    new_ts%test_name = ts_name
    new_ts%next => null()
    new_ts%compare => realArrEq
    !TODO: create a bunch of subclasses with different comparisson
    ! operators.
end function newTestRealArrVal_name