StateItemAdapter Derived Type

type, public, abstract :: StateItemAdapter


Inherited by

type~~stateitemadapter~~InheritedByGraph type~stateitemadapter StateItemAdapter type~stateitemadapterwrapper StateItemAdapterWrapper type~stateitemadapterwrapper->type~stateitemadapter adapter

Type-Bound Procedures

generic, public :: adapt => adapt_one

  • private subroutine adapt_subtype(this, spec, action)

    Arguments

    Type IntentOptional Attributes Name
    class(SubtypeAdapter), intent(in) :: this
    class(StateItemSpec), intent(inout) :: spec
    class(ExtensionAction), intent(out), allocatable :: action

procedure(I_adapt_one), public, deferred :: adapt_one

  • subroutine I_adapt_one(this, spec, action) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(StateItemAdapter), intent(in) :: this
    class(StateItemSpec), intent(inout) :: spec
    class(ExtensionAction), intent(out), allocatable :: action

generic, public :: match => match_one

  • private function match_subtype(this, spec) result(match)

    Arguments

    Type IntentOptional Attributes Name
    class(SubtypeAdapter), intent(in) :: this
    class(StateItemSpec), intent(in) :: spec

    Return Value logical

procedure(I_match_one), public, deferred :: match_one

  • function I_match_one(this, spec) result(match) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(StateItemAdapter), intent(in) :: this
    class(StateItemSpec), intent(in) :: spec

    Return Value logical

Source Code

   type, abstract :: StateItemAdapter
   contains
      generic :: adapt => adapt_one
      generic :: match => match_one
      procedure(I_adapt_one), deferred :: adapt_one
      procedure(I_match_one), deferred :: match_one
   end type StateItemAdapter