OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
process_receive_mem_traits_inte< sT, layout_base, Memory > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<typename sT, template< typename > class layout_base, typename Memory>
struct process_receive_mem_traits_inte< sT, layout_base, Memory >

this class is a functor for "for_each" algorithm

This class is a functor for "for_each" algorithm. For each element of the boost::vector the operator() is called. Is mainly used to process the receive buffers in case of memory_traits_inte layout receive

Template Parameters
encapsource
encapdst

Definition at line 151 of file VCluster_meta_function.hpp.

#include <VCluster_meta_function.hpp>

Public Member Functions

 process_receive_mem_traits_inte (openfpm::vector< typename sT::value_type, PtrMemory, layout_base, openfpm::grow_policy_identity > &v2, openfpm::vector_fr< BMemory< Memory > > &recv_buf, size_t i, size_t opt)
 constructor
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property.
 

Data Fields

size_t i
 set of pointers
 
openfpm::vector_fr< BMemory< Memory > > & recv_buf
 Receive buffer.
 
openfpm::vector< typename sT::value_type, PtrMemory, layout_base, openfpm::grow_policy_identity > & v2
 Fake vector that map over received memory.
 
size_t n_ele = 0
 
size_t opt
 

Constructor & Destructor Documentation

◆ process_receive_mem_traits_inte()

template<typename sT , template< typename > class layout_base, typename Memory >
process_receive_mem_traits_inte< sT, layout_base, Memory >::process_receive_mem_traits_inte ( openfpm::vector< typename sT::value_type, PtrMemory, layout_base, openfpm::grow_policy_identity > &  v2,
openfpm::vector_fr< BMemory< Memory > > &  recv_buf,
size_t  i,
size_t  opt 
)
inline

constructor

Parameters
vset of pointer buffers to set

Definition at line 172 of file VCluster_meta_function.hpp.

Member Function Documentation

◆ operator()()

template<typename sT , template< typename > class layout_base, typename Memory >
template<typename T >
void process_receive_mem_traits_inte< sT, layout_base, Memory >::operator() ( T &  t)
inline

It call the copy function for each property.

Definition at line 181 of file VCluster_meta_function.hpp.

Field Documentation

◆ i

template<typename sT , template< typename > class layout_base, typename Memory >
size_t process_receive_mem_traits_inte< sT, layout_base, Memory >::i

set of pointers

Definition at line 154 of file VCluster_meta_function.hpp.

◆ n_ele

template<typename sT , template< typename > class layout_base, typename Memory >
size_t process_receive_mem_traits_inte< sT, layout_base, Memory >::n_ele = 0

Definition at line 162 of file VCluster_meta_function.hpp.

◆ opt

template<typename sT , template< typename > class layout_base, typename Memory >
size_t process_receive_mem_traits_inte< sT, layout_base, Memory >::opt

Definition at line 165 of file VCluster_meta_function.hpp.

◆ recv_buf

template<typename sT , template< typename > class layout_base, typename Memory >
openfpm::vector_fr<BMemory<Memory> >& process_receive_mem_traits_inte< sT, layout_base, Memory >::recv_buf

Receive buffer.

Definition at line 157 of file VCluster_meta_function.hpp.

◆ v2

template<typename sT , template< typename > class layout_base, typename Memory >
openfpm::vector<typename sT::value_type,PtrMemory,layout_base,openfpm::grow_policy_identity>& process_receive_mem_traits_inte< sT, layout_base, Memory >::v2

Fake vector that map over received memory.

Definition at line 160 of file VCluster_meta_function.hpp.


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