OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
copy_switch_memory_c_no_cpy< T_type_src, T_type_dst > Struct Template Reference

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

Detailed Description

template<typename T_type_src, typename T_type_dst>
struct copy_switch_memory_c_no_cpy< T_type_src, T_type_dst >

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 one encap into another encap object

Template Parameters
encapsource
encapdst

Definition at line 33 of file map_grid_cuda_ker.cuh.

Public Member Functions

 copy_switch_memory_c_no_cpy (const T_type_src &src, T_type_dst &dst)
 constructor More...
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property.
 

Data Fields

const T_type_src & src
 encapsulated source object
 
T_type_dst & dst
 encapsulated destination object
 

Constructor & Destructor Documentation

◆ copy_switch_memory_c_no_cpy()

template<typename T_type_src , typename T_type_dst >
copy_switch_memory_c_no_cpy< T_type_src, T_type_dst >::copy_switch_memory_c_no_cpy ( const T_type_src &  src,
T_type_dst &  dst 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 47 of file map_grid_cuda_ker.cuh.


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