OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
Packer< T, Mem, PACKER_OBJECTS_WITH_POINTER_CHECK > Class Template Reference

Packer class for objects. More...

Detailed Description

template<typename T, typename Mem>
class Packer< T, Mem, PACKER_OBJECTS_WITH_POINTER_CHECK >

Packer class for objects.

Template Parameters
Tobject type to pack
MemMemory origin HeapMemory CudaMemory ...

Definition at line 221 of file Packer.hpp.

#include <Packer.hpp>

Static Public Member Functions

static void pack (ExtPreAlloc< Mem > &ext, const T &obj, Pack_stat &sts)
 It pack any object checking that the object does not have pointers inside. More...
 
static void packRequest (const T &obj, size_t &req)
 it add a request to pack an object More...
 
static void packRequest (size_t &req)
 it add a request to pack an object More...
 

Member Function Documentation

template<typename T , typename Mem >
static void Packer< T, Mem, PACKER_OBJECTS_WITH_POINTER_CHECK >::pack ( ExtPreAlloc< Mem > &  ext,
const T &  obj,
Pack_stat sts 
)
inlinestatic

It pack any object checking that the object does not have pointers inside.

Parameters
extpreallocated memory where to pack the objects
objobject to pack
stspack-stat info

Definition at line 232 of file Packer.hpp.

template<typename T , typename Mem >
static void Packer< T, Mem, PACKER_OBJECTS_WITH_POINTER_CHECK >::packRequest ( const T &  obj,
size_t &  req 
)
inlinestatic

it add a request to pack an object

Parameters
reqrequests vector

Definition at line 253 of file Packer.hpp.

template<typename T , typename Mem >
static void Packer< T, Mem, PACKER_OBJECTS_WITH_POINTER_CHECK >::packRequest ( size_t &  req)
inlinestatic

it add a request to pack an object

Parameters
reqrequests vector

Definition at line 263 of file Packer.hpp.


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