my_type Derived Type

type, public :: my_type


Inherits

type~~my_type~~InheritsGraph type~my_type my_type type~debug debug type~my_type->type~debug err

Components

Type Visibility Attributes Name Initial
integer, public :: a
integer, public :: b
type(debug), public :: err

Type-Bound Procedures

procedure, public :: my_function

  • private pure function my_function(this, a) result(b)

    Arguments

    Type IntentOptional Attributes Name
    class(my_type), intent(in) :: this
    integer, intent(in) :: a

    Return Value integer

procedure, public :: my_subroutine

  • private pure subroutine my_subroutine(this, a)

    Arguments

    Type IntentOptional Attributes Name
    class(my_type), intent(inout) :: this
    integer, intent(in) :: a

Source Code

   type my_type
      integer :: a, b
      type(debug) :: err
   contains
      procedure :: my_function
      procedure :: my_subroutine
   end type my_type