UDUnit Derived Type

type, public, extends(CptrWrapper) :: UDUnit


Inherits

type~~udunit~~InheritsGraph type~udunit UDUnit type~cptrwrapper CptrWrapper type~udunit->type~cptrwrapper c_ptr c_ptr type~cptrwrapper->c_ptr cptr_

Constructor

public interface UDUnit

  • private function construct_unit(identifier) result(instance)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: identifier

    Return Value type(UDUnit)


Type-Bound Procedures

procedure, public :: free

  • private subroutine free(this)

    Arguments

    Type IntentOptional Attributes Name
    class(CptrWrapper), intent(inout) :: this

procedure, public, pass(this) :: free_memory => free_ut_unit

  • private subroutine free_ut_unit(this)

    Arguments

    Type IntentOptional Attributes Name
    class(UDUnit), intent(in) :: this

procedure, public :: get_cptr

  • private function get_cptr(this)

    Arguments

    Type IntentOptional Attributes Name
    class(CptrWrapper), intent(in) :: this

    Return Value type(c_ptr)

procedure, public :: is_free

  • private function is_free(this)

    Arguments

    Type IntentOptional Attributes Name
    class(CptrWrapper), intent(in) :: this

    Return Value logical

procedure, public :: set_cptr

  • private subroutine set_cptr(this, cptr)

    Arguments

    Type IntentOptional Attributes Name
    class(CptrWrapper), intent(inout) :: this
    type(c_ptr), intent(in) :: cptr

Source Code

   type, extends(CptrWrapper) :: UDUnit
   contains
      procedure, public, pass(this) :: free_memory => free_ut_unit
   end type UDUnit