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

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

Detailed Description

template<typename e_src, typename e_dst, unsigned int ... prp>
struct copy_cpu_encap_encap_prp< e_src, e_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 one encap into another encap object

Template Parameters
encapsource
encapdst

Definition at line 32 of file Encap.hpp.

#include <Encap.hpp>

Public Types

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

Public Member Functions

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

Data Fields

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

Member Typedef Documentation

◆ vprp

template<typename e_src , typename e_dst , unsigned int ... prp>
typedef to_boost_vmpl<prp...>::type copy_cpu_encap_encap_prp< e_src, e_dst, prp >::vprp

Definition at line 39 of file Encap.hpp.

Constructor & Destructor Documentation

◆ copy_cpu_encap_encap_prp()

template<typename e_src , typename e_dst , unsigned int ... prp>
__device__ __host__ copy_cpu_encap_encap_prp< e_src, e_dst, prp >::copy_cpu_encap_encap_prp ( e_src &  src,
e_dst &  dst 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 47 of file Encap.hpp.

Member Function Documentation

◆ operator()()

template<typename e_src , typename e_dst , unsigned int ... prp>
template<typename T >
__device__ __host__ void copy_cpu_encap_encap_prp< e_src, e_dst, prp >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 73 of file Encap.hpp.

Field Documentation

◆ dst

template<typename e_src , typename e_dst , unsigned int ... prp>
e_dst& copy_cpu_encap_encap_prp< e_src, e_dst, prp >::dst

encapsulated destination object

Definition at line 37 of file Encap.hpp.

◆ src

template<typename e_src , typename e_dst , unsigned int ... prp>
e_src& copy_cpu_encap_encap_prp< e_src, e_dst, prp >::src

encapsulated source object

Definition at line 35 of file Encap.hpp.


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