OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
copy_cpu_encap_encap_general< e_src, e_dst > Struct Template Reference

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

Detailed Description

template<typename e_src, typename e_dst>
struct copy_cpu_encap_encap_general< e_src, e_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

Definition at line 157 of file Encap.hpp.

#include <Encap.hpp>

Public Member Functions

__device__ __host__ copy_cpu_encap_encap_general (const e_src &src, e_dst &dst)
 constructor More...
template<typename T >
__device__ __host__ void operator() (T &t) const
 It call the copy function for each property.

Data Fields

const e_src & src
 encapsulated source object
e_dst & dst
 encapsulated destination object

Constructor & Destructor Documentation

◆ copy_cpu_encap_encap_general()

template<typename e_src, typename e_dst>
__device__ __host__ copy_cpu_encap_encap_general< e_src, e_dst >::copy_cpu_encap_encap_general ( const e_src &  src,
e_dst &  dst 


srcsource encapsulated object
dstsource encapsulated object

Definition at line 171 of file Encap.hpp.

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