OpenM++ runtime library (libopenm)
|
MPI-based adapter to pack and unpack vector of metadata db rows. More...
#include <msgMpiPacked.h>
Public Member Functions | |
MsgTag | tag (void) const noexcept override |
return message tag More... | |
const vector< uint8_t > | pack (const IRowBaseVec &i_rowVec) const override |
pack vector of metadata db rows into byte vector. More... | |
void | unpackTo (int i_packSize, void *i_packedData, IRowBaseVec &io_rowVec) const override |
unpack from byte[] message bufer into vector of metadata db rows. More... | |
virtual MsgTag | tag (void) const noexcept=0 |
return message tag More... | |
virtual const vector< uint8_t > | pack (const IRowBaseVec &i_rowVec) const =0 |
pack vector of db rows into byte vector. More... | |
virtual void | unpackTo (int i_packSize, void *i_packedData, IRowBaseVec &io_rowVec) const =0 |
unpack from byte[] into vector of rows. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from openm::IPackedAdapter | |
static IPackedAdapter * | create (MsgTag i_msgTag) |
pack adapter factory: create new adapter for metadata table db rows. More... | |
static size_t | packedSize (const type_info &i_type, size_t i_size) |
return byte size to pack source array. More... | |
static unique_ptr< uint8_t[]> | packArray (const type_info &i_type, size_t i_size, void *i_valueArr) |
return new allocated and packed copy of source array. More... | |
MPI-based adapter to pack and unpack vector of metadata db rows.
rowMsgTag | message tag for this type of metadata db row. |
TRow | type of metadata db row. |
|
inlineoverridevirtual |
pack vector of metadata db rows into byte vector.
[in] | i_rowVec | source vector of metadata db rows |
Implements openm::IPackedAdapter.
|
inlineoverridevirtualnoexcept |
return message tag
Implements openm::IPackedAdapter.
|
inlineoverridevirtual |
unpack from byte[] message bufer into vector of metadata db rows.
[in] | i_packSize | total size in bytes of i_packedData buffer |
[in] | i_packedData | source MPI message buffer to unpack |
[in,out] | io_rowVec | destination vector to append metadata db rows |
Implements openm::IPackedAdapter.