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

Member Function Documentation

◆ operator()()

template<typename T_type_src , typename T_type_dst >
template<typename T >
void copy_switch_memory_c_no_cpy< T_type_src, T_type_dst >::operator() ( T &  t)
inline

It call the copy function for each property.

Definition at line 56 of file map_grid_cuda_ker.cuh.

Field Documentation

◆ dst

template<typename T_type_src , typename T_type_dst >
T_type_dst& copy_switch_memory_c_no_cpy< T_type_src, T_type_dst >::dst

encapsulated destination object

Definition at line 38 of file map_grid_cuda_ker.cuh.

◆ src

template<typename T_type_src , typename T_type_dst >
const T_type_src& copy_switch_memory_c_no_cpy< T_type_src, T_type_dst >::src

encapsulated source object

Definition at line 36 of file map_grid_cuda_ker.cuh.


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