|
OpenM++ runtime library (libopenm)
|
wrapper class around of MPI_Pack and MPI_Unpack More...
#include <msgMpiPacked.h>
Static Public Member Functions | |
| template<typename TVal > | |
| static void | pack (TVal i_value, int i_packedSize, void *io_packedData, int &io_packPos) |
| MPI_Pack value of primitive type into data buffer at i_packPos position. | |
| template<typename TVal > | |
| static TVal | unpack (int i_packedSize, void *i_packedData, int &io_packPos) |
| MPI_Unpack value of primitive type from data buffer at i_packPos position and return the value. | |
| static void | pack (const string &i_value, int i_packedSize, void *io_packedData, int &io_packPos) |
| MPI_Pack string into data buffer at i_packPos position. | |
| static string | unpackStr (int i_packedSize, void *i_packedData, int &io_packPos) |
| MPI_Unpack string from data buffer at i_packPos position and return the string. | |
| static unique_ptr< uint8_t[]> | packArray (const type_info &i_type, size_t i_size, void *i_valueArr) |
| return an MPI_Pack'ed copy of source array. | |
| static unique_ptr< uint8_t[]> | packArray (size_t i_size, const string *i_valueArr) |
| return an MPI_Pack'ed copy of source string array. | |
| static void | unpackArray (int i_packedSize, void *i_packedData, size_t i_size, string *io_valueArr) |
| unpack MPI_Pack'ed string array from i_packedData into supplied io_valueArr. | |
| static int | packedSize (const type_info &i_type, size_t i_size) |
| return MPI pack size for array of specified primitive type values. | |
| static int | packedSize (size_t i_size, const string *i_valueArr) |
| return MPI pack size of string array. | |
| static int | packedSize (const type_info &i_type) |
| return MPI pack size for specified primitive type. | |
| static int | packedSize (const string &i_value) |
| return MPI pack size for string value. | |
| static MPI_Datatype | toMpiType (const type_info &i_type) |
| return MPI type corresponding to source primitive type. | |
wrapper class around of MPI_Pack and MPI_Unpack
|
static |
MPI_Pack string into data buffer at i_packPos position.
| [in] | i_value | string to be packed |
| [in] | i_packedSize | total size in bytes of io_packedData buffer |
| [in,out] | io_packedData | destination buffer to pack MPI message |
| [in,out] | io_packPos | current position in io_packedData buffer |
|
inlinestatic |
MPI_Pack value of primitive type into data buffer at i_packPos position.
| TVal | type of i_value to be packed. |
| [in] | i_value | value of primitive type to be packed |
| [in] | i_packedSize | total size in bytes of io_packedData buffer |
| [in,out] | io_packedData | buffer to pack MPI message |
| [in,out] | io_packPos | current position in io_packedData buffer |
|
static |
return an MPI_Pack'ed copy of source array.
| [in] | i_type | value type |
| [in] | i_size | size of array |
| [in] | i_valueArr | array of values to be packed |
|
static |
return an MPI_Pack'ed copy of source string array.
| [in] | i_type | value type |
| [in] | i_size | size of array (row count) |
| [in] | i_valueArr | array of strings to be packed |
|
static |
return MPI pack size for string value.
| [in] | i_value | string to be packed |
|
static |
return MPI pack size for specified primitive type.
| [in] | i_type | type of value to be packed |
|
static |
return MPI pack size for array of specified primitive type values.
| [in] | i_type | value type |
| [in] | i_size | size of array |
|
static |
return MPI pack size of string array.
| [in] | i_type | value type |
| [in] | i_size | size of array |
| [in] | i_valueArr | array of string[i_size] |
|
static |
return MPI type corresponding to source primitive type.
return MPI_Datatype corresponding to source primitive type.
| [in] | i_type | source primitive type |
|
inlinestatic |
MPI_Unpack value of primitive type from data buffer at i_packPos position and return the value.
| TVal | type of value to be unpacked. |
| [in] | i_packedSize | total size in bytes of i_packedData buffer |
| [in] | i_packedData | source MPI message buffer to unpack |
| [in,out] | io_packPos | current position in i_packedData buffer |
|
static |
unpack MPI_Pack'ed string array from i_packedData into supplied io_valueArr.
| [in] | i_packedSize | total size in bytes of i_packedData buffer |
| [in] | i_packedData | source MPI message buffer to unpack: i_packedData[i_packedSize] |
| [in] | i_size | size of array (row count) |
| [in,out] | io_valueArr | supplied array of string[i_size] to unpack results |
|
static |
MPI_Unpack string from data buffer at i_packPos position and return the string.
| [in] | i_packedSize | total size in bytes of i_packedData buffer |
| [in] | i_packedData | source MPI message buffer to unpack |
| [in,out] | io_packPos | current position in i_packedData buffer |