ForwardDataAndMessage Derived Type

type, public :: ForwardDataAndMessage


Inherits

type~~forwarddataandmessage~~InheritsGraph type~forwarddataandmessage ForwardDataAndMessage type~messagevector MessageVector type~forwarddataandmessage->type~messagevector msg_vec type~v_wrapper~7 v_Wrapper type~messagevector->type~v_wrapper~7 elements type~abstractmessage AbstractMessage type~v_wrapper~7->type~abstractmessage item

Components

Type Visibility Attributes Name Initial
integer, public, allocatable :: idata(:)
type(MessageVector), public :: msg_vec

Constructor

public interface ForwardDataAndMessage

  • private function new_ForwardDataAndMessage() result(message)

    Arguments

    None

    Return Value type(ForwardDataAndMessage)


Type-Bound Procedures

procedure, public :: add_data_message

  • private subroutine add_data_message(this, msg, i_ptr, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(ForwardDataAndMessage), intent(inout) :: this
    class(AbstractMessage) :: msg
    integer, intent(in) :: i_ptr(:)
    integer, intent(out), optional :: rc

procedure, public :: deserialize

  • private subroutine deserialize(this, buffer, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(ForwardDataAndMessage), intent(inout) :: this
    integer, intent(in) :: buffer(:)
    integer, intent(out), optional :: rc

procedure, public :: destroy

  • private subroutine destroy(this, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(ForwardDataAndMessage), intent(inout) :: this
    integer, intent(out), optional :: rc

procedure, public :: serialize

  • private subroutine serialize(this, buffer, rc)

    Arguments

    Type IntentOptional Attributes Name
    class(ForwardDataAndMessage), intent(in) :: this
    integer, intent(inout), allocatable :: buffer(:)
    integer, intent(out), optional :: rc

Source Code

   type :: ForwardDataAndMessage
      type (MessageVector) :: msg_vec
      integer, allocatable :: idata(:)
   contains
      procedure :: add_data_message
      procedure :: serialize
      procedure :: deserialize
      procedure :: destroy
   end type ForwardDataAndMessage