OpenM++ runtime library (libopenm)
openm::EmptyPackedAdapter Struct Reference

pack and unpack adapter for metadata table db rows (empty implementation). More...

#include <msgEmpty.h>

Inheritance diagram for openm::EmptyPackedAdapter:
Collaboration diagram for openm::EmptyPackedAdapter:

Public Member Functions

 EmptyPackedAdapter (MsgTag i_tag)
 create pack and unpack adapter for metadata table db rows
 
MsgTag tag (void) const noexcept override
 return message tag More...
 
const vector< uint8_t > pack (const IRowBaseVec &) const override
 pack vector of db rows into byte vector: return empty vector. More...
 
void unpackTo (int, void *, IRowBaseVec &) const override
 unpack from byte[] into vector of rows (does nothing). 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 IPackedAdaptercreate (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...
 

Detailed Description

pack and unpack adapter for metadata table db rows (empty implementation).

Member Function Documentation

◆ pack()

const vector< uint8_t > openm::EmptyPackedAdapter::pack ( const IRowBaseVec ) const
inlineoverridevirtual

pack vector of db rows into byte vector: return empty vector.

Implements openm::IPackedAdapter.

◆ tag()

MsgTag openm::EmptyPackedAdapter::tag ( void  ) const
inlineoverridevirtualnoexcept

return message tag

Implements openm::IPackedAdapter.

◆ unpackTo()

void openm::EmptyPackedAdapter::unpackTo ( int  ,
void *  ,
IRowBaseVec  
) const
inlineoverridevirtual

unpack from byte[] into vector of rows (does nothing).

Implements openm::IPackedAdapter.


The documentation for this struct was generated from the following file: