OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
copy_ele< Eqs_sys, S, Ev > Struct Template Reference

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

Detailed Description

template<typename Eqs_sys, typename S, typename Ev>
struct copy_ele< Eqs_sys, S, Ev >

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 from the Vector to the grid target

Note
properties can be scalars or arrays of C++ primitives
Template Parameters
Eqs_sysSystem of equation information
Stype of destination grid
Evtype of vector

Definition at line 91 of file Vector_util.hpp.

#include <Vector_util.hpp>

Public Member Functions

 copy_ele (const grid_dist_key_dx< Eqs_sys::dims > &key, S &grid_dst, const Ev &x, size_t lin_id, size_t gs_size)
 Constructor. More...
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property. More...
 

Data Fields

const grid_dist_key_dx
< Eqs_sys::dims > 
key
 destination grid element
 
S & grid_dst
 destination grid
 
size_t lin_id
 source element inside the vector
 
size_t prp_id
 counter
 
size_t gs_size
 It is basically the number of grid points the vector has inside.
 
const Ev & x
 source vector
 

Constructor & Destructor Documentation

template<typename Eqs_sys, typename S, typename Ev>
copy_ele< Eqs_sys, S, Ev >::copy_ele ( const grid_dist_key_dx< Eqs_sys::dims > &  key,
S &  grid_dst,
const Ev &  x,
size_t  lin_id,
size_t  gs_size 
)
inline

Constructor.

It define the copy parameters.

Parameters
keydestination position
grid_dstgrid destination
xSource vector
lin_idsource element inside the vector
gs_sizegrid size

Definition at line 122 of file Vector_util.hpp.

Member Function Documentation

template<typename Eqs_sys, typename S, typename Ev>
template<typename T >
void copy_ele< Eqs_sys, S, Ev >::operator() ( T &  t)
inline

It call the copy function for each property.

Parameters
tproperty id

Definition at line 144 of file Vector_util.hpp.


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