OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property.
 

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

◆ copy_ele()

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

◆ operator()()

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.

Field Documentation

◆ grid_dst

template<typename Eqs_sys , typename S , typename Ev >
S& copy_ele< Eqs_sys, S, Ev >::grid_dst

destination grid

Definition at line 97 of file Vector_util.hpp.

◆ gs_size

template<typename Eqs_sys , typename S , typename Ev >
size_t copy_ele< Eqs_sys, S, Ev >::gs_size

It is basically the number of grid points the vector has inside.

Definition at line 106 of file Vector_util.hpp.

◆ key

template<typename Eqs_sys , typename S , typename Ev >
const grid_dist_key_dx<Eqs_sys::dims> copy_ele< Eqs_sys, S, Ev >::key

destination grid element

Definition at line 94 of file Vector_util.hpp.

◆ lin_id

template<typename Eqs_sys , typename S , typename Ev >
size_t copy_ele< Eqs_sys, S, Ev >::lin_id

source element inside the vector

Definition at line 100 of file Vector_util.hpp.

◆ prp_id

template<typename Eqs_sys , typename S , typename Ev >
size_t copy_ele< Eqs_sys, S, Ev >::prp_id

counter

Definition at line 103 of file Vector_util.hpp.

◆ x

template<typename Eqs_sys , typename S , typename Ev >
const Ev& copy_ele< Eqs_sys, S, Ev >::x

source vector

Definition at line 109 of file Vector_util.hpp.


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