OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
stag_set_position< dim, v, has_pM > Class Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<unsigned int dim, typename v, bool has_pM = has_posMask<v>::value>
class stag_set_position< dim, v, has_pM >

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

Template Parameters
dimdimensionality
vboost::fusion::vector of properties
has_posMaskcase 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
 

Constructor & Destructor Documentation

◆ stag_set_position()

template<unsigned int dim, typename v , bool has_pM = has_posMask<v>::value>
stag_set_position< dim, v, has_pM >::stag_set_position ( openfpm::vector< comb< dim > >(&)  pos_prp[boost::fusion::result_of::size< v >::type::value])
inline

vector containing the position of the properties in the cells (staggered properties are staggered)

Constructor

Parameters
vectorof the staggered position (It is going to be filled by this class)

Definition at line 489 of file staggered_dist_grid_util.hpp.

Member Function Documentation

◆ operator()()

template<unsigned int dim, typename v , bool has_pM = has_posMask<v>::value>
template<typename T >
void stag_set_position< dim, v, has_pM >::operator() ( T &  t) const
inline

It calculate the staggered position for every property

Parameters
tproperty

Definition at line 499 of file staggered_dist_grid_util.hpp.


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