OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
copy_cpu_encap_single< e_src > Struct Template Reference

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

Detailed Description

template<typename e_src>
struct copy_cpu_encap_single< e_src >

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 221 of file Encap.hpp.

#include <Encap.hpp>

Public Member Functions

__device__ __host__ copy_cpu_encap_single (const e_src &src, e_src &dst)
 constructor
 
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_src & dst
 encapsulated destination object
 

Constructor & Destructor Documentation

◆ copy_cpu_encap_single()

template<typename e_src >
__device__ __host__ copy_cpu_encap_single< e_src >::copy_cpu_encap_single ( const e_src &  src,
e_src &  dst 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 235 of file Encap.hpp.

Member Function Documentation

◆ operator()()

template<typename e_src >
template<typename T >
__device__ __host__ void copy_cpu_encap_single< e_src >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 261 of file Encap.hpp.

Field Documentation

◆ dst

template<typename e_src >
e_src& copy_cpu_encap_single< e_src >::dst

encapsulated destination object

Definition at line 226 of file Encap.hpp.

◆ src

template<typename e_src >
const e_src& copy_cpu_encap_single< e_src >::src

encapsulated source object

Definition at line 224 of file Encap.hpp.


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