OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
copy_cpu_encap_encap< 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< 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
encapsource
encapdst

Definition at line 34 of file Encap.hpp.

#include <Encap.hpp>

Public Member Functions

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

Data Fields

const e_src & src
 object we have to store
 
e_dst & dst
 

Constructor & Destructor Documentation

template<typename e_src, typename e_dst>
copy_cpu_encap_encap< e_src, e_dst >::copy_cpu_encap_encap ( const e_src &  src,
e_dst &  dst 
)
inline

constructor

It define the copy parameters.

Parameters
keywhich element we are modifying
grid_dstgrid we are updating
objobject we have to set in grid_dst (encapsulated)

Definition at line 50 of file Encap.hpp.


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