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 calculate the interpolation points for each property in a staggered grid
dim | Dimensionality |
v_prp_id | vector of properties id |
v_prp_type | vector with the properties |
Definition at line 826 of file staggered_dist_grid_util.hpp.
#include <staggered_dist_grid_util.hpp>
Public Types | |
typedef boost::mpl::size< v_prp_id > | v_size |
Public Member Functions | |
interp_points (openfpm::vector< std::vector< comb< dim > > >(&interp_pts)[v_size::value], const openfpm::vector< comb< dim > >(&stag_pos)[n_prop]) | |
constructor | |
template<typename T > | |
void | operator() (T &t) |
It call the copy function for each property. | |
typedef boost::mpl::size<v_prp_id> interp_points< dim, n_prop, v_prp_id, v_prp_type >::v_size |
Definition at line 838 of file staggered_dist_grid_util.hpp.
|
inline |
constructor
It define the copy parameters.
inter_pts | array that for each property contain the interpolation points for each components |
staggered | position for each property and components |
Definition at line 856 of file staggered_dist_grid_util.hpp.
|
inline |
It call the copy function for each property.
Definition at line 861 of file staggered_dist_grid_util.hpp.