this class is a functor for "for_each" algorithm More...
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
Eqs_sys | System of equation information |
S | type of destination grid |
Ev | type 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 | |
|
inline |
Constructor.
It define the copy parameters.
key | destination position |
grid_dst | grid destination |
x | Source vector |
lin_id | source element inside the vector |
gs_size | grid size |
Definition at line 122 of file Vector_util.hpp.
|
inline |
It call the copy function for each property.
t | property id |
Definition at line 144 of file Vector_util.hpp.
S& copy_ele< Eqs_sys, S, Ev >::grid_dst |
destination grid
Definition at line 97 of file Vector_util.hpp.
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.
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.
size_t copy_ele< Eqs_sys, S, Ev >::lin_id |
source element inside the vector
Definition at line 100 of file Vector_util.hpp.
size_t copy_ele< Eqs_sys, S, Ev >::prp_id |
counter
Definition at line 103 of file Vector_util.hpp.
const Ev& copy_ele< Eqs_sys, S, Ev >::x |
source vector
Definition at line 109 of file Vector_util.hpp.