this class is a functor for "for_each" algorithm More...
this class is a functor for "for_each" algorithm
For each element of the boost::vector the operator() is called. Is mainly used to produce a default position vector for each property
dim | dimensionality |
v | boost::fusion::vector of properties |
has_posMask | case when v has a position mask |
Definition at line 476 of file staggered_dist_grid_util.hpp.
#include <staggered_dist_grid_util.hpp>
Public Member Functions | |
stag_set_position (openfpm::vector< comb< dim > >(&pos_prp)[boost::fusion::result_of::size< v >::type::value]) | |
vector containing the position of the properties in the cells (staggered properties are staggered) | |
template<typename T > | |
void | operator() (T &t) const |
|
inline |
vector containing the position of the properties in the cells (staggered properties are staggered)
Constructor
vector | of the staggered position (It is going to be filled by this class) |
Definition at line 489 of file staggered_dist_grid_util.hpp.
|
inline |
It calculate the staggered position for every property
t | property |
Definition at line 499 of file staggered_dist_grid_util.hpp.