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, rc)

    Arguments

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

procedure(I_adapt_one), public, deferred :: adapt_one

  • subroutine I_adapt_one(this, spec, action, rc) Prototype

    Arguments

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

generic, public :: match => match_one

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

    Arguments

    Type IntentOptional Attributes Name
    class(SubtypeAdapter), intent(in) :: this
    class(StateItemSpec), intent(in) :: spec
    integer, intent(out), optional :: rc

    Return Value logical

procedure(I_match_one), public, deferred :: match_one

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

    Arguments

    Type IntentOptional Attributes Name
    class(StateItemAdapter), intent(in) :: this
    class(StateItemSpec), intent(in) :: spec
    integer, intent(out), optional :: rc

    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