OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
Packer< T, Mem, PACKER_ARRAY_PRIMITIVE > Class Template Reference

Packer for primitives. More...

Detailed Description

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

Packer for primitives.

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

Definition at line 113 of file Packer.hpp.

#include <Packer.hpp>

Static Public Member Functions

static void pack (ExtPreAlloc< Mem > &ext, const T &obj, Pack_stat &sts, size_t n)
 It packs arrays of C++ primitives. More...
 
static void packRequestDummy (std::vector< size_t > &req)
 It add a request to pack a C++ primitive. More...
 

Member Function Documentation

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

It packs arrays of C++ primitives.

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

Definition at line 124 of file Packer.hpp.

template<typename T , typename Mem >
static void Packer< T, Mem, PACKER_ARRAY_PRIMITIVE >::packRequestDummy ( std::vector< size_t > &  req)
inlinestatic

It add a request to pack a C++ primitive.

Parameters
reqrequests vector

Definition at line 142 of file Packer.hpp.


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