OpenM++ runtime library (libopenm)
openm::MpiRecvArray Class Reference

non-blocking receive of value array More...

#include <msgMpiRecv.h>

Inheritance diagram for openm::MpiRecvArray:
Collaboration diagram for openm::MpiRecvArray:

Public Member Functions

 MpiRecvArray (int i_selfRank, int i_recvFrom, MsgTag i_msgTag, const type_info &i_type, size_t i_size, void *io_valueArr)
 create receiver for value array. More...
 
bool tryReceive (void)
 try to non-blocking receive value array, return true if completed. More...
 
- Public Member Functions inherited from openm::IMsgRecvArray
virtual ~IMsgRecvArray (void) noexcept=0
 cleanup value array receiver resources.
 
- Public Member Functions inherited from openm::IMsgRecv
virtual ~IMsgRecv (void) noexcept=0
 cleanup message receiver resources.
 
virtual bool tryReceive (void)=0
 try to receive the data, return return true if received. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from openm::IMsgRecvArray
static IMsgRecvArraycreate (int i_selfRank, int i_recvFrom, MsgTag i_msgTag, const type_info &i_type, size_t i_size, void *io_valueArr)
 create new receiver for value array. More...
 

Detailed Description

non-blocking receive of value array

Constructor & Destructor Documentation

◆ MpiRecvArray()

openm::MpiRecvArray::MpiRecvArray ( int  i_selfRank,
int  i_recvFrom,
MsgTag  i_msgTag,
const type_info &  i_type,
size_t  i_size,
void *  io_valueArr 
)
inline

create receiver for value array.

Parameters
[in]i_selfRankreceiver (current process MPI rank)
[in]i_recvFromsender proccess MPI rank
[in]i_msgTagtag to identify message content (parameter or output data)
[in]i_typevalue type
[in]i_sizesize of array
[in,out]io_valueArrallocated buffer to recieve value array

Member Function Documentation

◆ tryReceive()

bool MpiRecvArray::tryReceive ( void  )
virtual

try to non-blocking receive value array, return true if completed.

Implements openm::IMsgRecv.


The documentation for this class was generated from the following files: