OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 
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.
 

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 Typedef Documentation

◆ base_type

template<typename T , typename Mem >
typedef std::remove_all_extents<T>::type Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE >::base_type
private

base type of the primitive arrat

Definition at line 127 of file Unpacker.hpp.

◆ n_ext

template<typename T , typename Mem >
typedef boost::mpl::int_<std::rank<T>::value> Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE >::n_ext
private

numver of extents in the primitive array

Definition at line 130 of file Unpacker.hpp.

◆ vmpl

template<typename T , typename Mem >
typedef to_memory_multi_array_ref_view<T>::vmpl Unpacker< T, Mem, PACKER_ARRAY_CP_PRIMITIVE >::vmpl
private

Definition at line 132 of file Unpacker.hpp.

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: