OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
object_si_d_e_cnk< v_src, v_dst, prp > Struct Template Reference

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

Detailed Description

template<typename v_src, typename v_dst, int... prp>
struct object_si_d_e_cnk< v_src, v_dst, prp >

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 copy the selected properties

Template Parameters
v_srcsource object
d_srcdestination object

Definition at line 97 of file object_si_d.hpp.

#include <object_si_d.hpp>

Public Types

typedef to_boost_vmpl< prp... >::type v_prp
 

Public Member Functions

 object_si_d_e_cnk (const v_src &src, size_t sub_id, v_dst &dst)
 Constructor.
 
template<typename T >
void operator() (T &t)
 It call the functor for each member.
 

Data Fields

const v_src & src
 
v_dst & dst
 
size_t sub_id
 

Member Typedef Documentation

◆ v_prp

template<typename v_src , typename v_dst , int... prp>
typedef to_boost_vmpl<prp...>::type object_si_d_e_cnk< v_src, v_dst, prp >::v_prp

Definition at line 100 of file object_si_d.hpp.

Constructor & Destructor Documentation

◆ object_si_d_e_cnk()

template<typename v_src , typename v_dst , int... prp>
object_si_d_e_cnk< v_src, v_dst, prp >::object_si_d_e_cnk ( const v_src &  src,
size_t  sub_id,
v_dst &  dst 
)
inline

Constructor.

Parameters
srcsource object
dstdestination object

Definition at line 117 of file object_si_d.hpp.

Member Function Documentation

◆ operator()()

template<typename v_src , typename v_dst , int... prp>
template<typename T >
void object_si_d_e_cnk< v_src, v_dst, prp >::operator() ( T &  t)
inline

It call the functor for each member.

Definition at line 124 of file object_si_d.hpp.

Field Documentation

◆ dst

template<typename v_src , typename v_dst , int... prp>
v_dst& object_si_d_e_cnk< v_src, v_dst, prp >::dst

Definition at line 106 of file object_si_d.hpp.

◆ src

template<typename v_src , typename v_dst , int... prp>
const v_src& object_si_d_e_cnk< v_src, v_dst, prp >::src

Definition at line 103 of file object_si_d.hpp.

◆ sub_id

template<typename v_src , typename v_dst , int... prp>
size_t object_si_d_e_cnk< v_src, v_dst, prp >::sub_id

Definition at line 109 of file object_si_d.hpp.


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