OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE > Class Template Reference

Detailed Description

template<typename T, typename Mem>
class Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE >

Definition at line 124 of file Unpacker.hpp.

Static Public Member Functions

static void unpack (ExtPreAlloc< Mem > &ext, T &obj, Unpack_stat &ps)
 It packs arrays of C++ primitives. More...
 
static void unpack (ExtPreAlloc< Mem > &ext, typename openfpm::multi_array_ref_openfpm< base_type, n_ext::value+1, vmpl >::reference obj, Unpack_stat &ps)
 It unpack C++ primitives. More...
 

Private Types

typedef std::remove_all_extents< T >::type base_type
 base type of the primitive arrat
 
typedef boost::mpl::int_< std::rank< T >::value > n_ext
 numver of extents in the primitive array
 
typedef to_memory_multi_array_ref_view< T >::vmpl vmpl
 

Member Function Documentation

◆ unpack() [1/2]

template<typename T , typename Mem >
static void Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE >::unpack ( ExtPreAlloc< Mem > &  ext,
T &  obj,
Unpack_stat ps 
)
inlinestatic

It packs arrays of C++ primitives.

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

Definition at line 143 of file Unpacker.hpp.

◆ unpack() [2/2]

template<typename T , typename Mem >
static void Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE >::unpack ( ExtPreAlloc< Mem > &  ext,
typename openfpm::multi_array_ref_openfpm< base_type, n_ext::value+1, vmpl >::reference  obj,
Unpack_stat ps 
)
inlinestatic

It unpack C++ primitives.

Parameters
extpreallocated memory from where to unpack the object
objobject where to unpack

Definition at line 158 of file Unpacker.hpp.


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