type_int_vector_2d Derived Type

type, public :: type_int_vector_2d


Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: x
integer(kind=int32), public :: y

Type-Bound Procedures

generic, public :: set => set_int_vector_2d, set_int_vector_2d_array

  • private subroutine set_int_vector_2d(self, x_val, y_val)

    Arguments

    Type IntentOptional Attributes Name
    class(type_int_vector_2d), intent(inout) :: self
    integer(kind=int32), intent(in) :: x_val
    integer(kind=int32), intent(in) :: y_val
  • private subroutine set_int_vector_2d_array(self, value)

    Arguments

    Type IntentOptional Attributes Name
    class(type_int_vector_2d), intent(inout) :: self
    integer(kind=int32), intent(in) :: value(2)

procedure, private, pass(self) :: set_int_vector_2d

  • private subroutine set_int_vector_2d(self, x_val, y_val)

    Arguments

    Type IntentOptional Attributes Name
    class(type_int_vector_2d), intent(inout) :: self
    integer(kind=int32), intent(in) :: x_val
    integer(kind=int32), intent(in) :: y_val

procedure, private, pass(self) :: set_int_vector_2d_array

Source Code

    type :: type_int_vector_2d
        integer(int32) :: x
        integer(int32) :: y
    contains
        procedure, private, pass(self) :: set_int_vector_2d
        procedure, private, pass(self) :: set_int_vector_2d_array
        generic, public :: set => set_int_vector_2d, set_int_vector_2d_array
    end type type_int_vector_2d