OpenM++ runtime library (libopenm)
|
public interface to pack and unpack rows of metadata db-table More...
#include <msg.h>
Public Member Functions | |
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... | |
Static Public Member Functions | |
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... | |
public interface to pack and unpack rows of metadata db-table
|
static |
pack adapter factory: create new adapter for metadata table db rows.
[in] | i_msgTag | tag to identify message content (parameter or output data) |
|
pure virtual |
pack vector of db rows into byte vector.
[in] | i_rowVec | vector of db rows to pack |
Implemented in openm::EmptyPackedAdapter, and openm::MetaMpiPackedAdapter< rowMsgTag, TRow >.
|
static |
return new allocated and packed copy of source array.
return pack'ed copy of source array: return always empty.
|
static |
return byte size to pack source array.
return byte size to pack source array: return always zero
|
pure virtualnoexcept |
return message tag
Implemented in openm::EmptyPackedAdapter, and openm::MetaMpiPackedAdapter< rowMsgTag, TRow >.
|
pure virtual |
unpack from byte[] into vector of rows.
[in] | i_packSize | size of array to unpack |
[in] | i_packedData | byte array to unpack |
[in,out] | io_rowVec | vector to push back received db rows |
Implemented in openm::MetaMpiPackedAdapter< rowMsgTag, TRow >, and openm::EmptyPackedAdapter.