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. 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 | |
|
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.