Packing class. More...
Packing class.
This class pack objects primitives vectors and grids, the general usage is to create a vector of packing request (std::vector<size_t>) that contain the size of the required space needed to pack the information. Calculate the total size, allocating it on HeapMemory (for example), Create an ExtPreAlloc memory object giving the preallocated memory to it and finally Pack all the objects subsequently
In order to unpack the information the Unpacker class can be used
T | object type to pack |
Mem | Memory origin HeapMemory CudaMemory ... |
Implementation | of the packer (the Pack_selector choose the correct one) |
Definition at line 46 of file Packer.hpp.
#include <Packer.hpp>
Static Public Member Functions | |
static void | pack (ExtPreAlloc< Mem >, const T &obj) |
Error, no implementation. More... | |
static size_t | packRequest (std::vector< size_t > &req) |
Error, no implementation. More... | |
|
inlinestatic |
Error, no implementation.
Definition at line 53 of file Packer.hpp.
|
inlinestatic |
Error, no implementation.
Definition at line 61 of file Packer.hpp.