OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
stag_set_position< dim, v, false > Class Template Reference

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

Detailed Description

template<unsigned int dim, typename v>
class stag_set_position< dim, v, false >

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
vectorof properties

Definition at line 574 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) More...
 
template<typename T >
void operator() (T &t) const
 

Constructor & Destructor Documentation

template<unsigned int dim, typename v >
stag_set_position< dim, v, false >::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 590 of file staggered_dist_grid_util.hpp.

Member Function Documentation

template<unsigned int dim, typename v >
template<typename T >
void stag_set_position< dim, v, false >::operator() ( T &  t) const
inline

It calculate the staggered position for every property

Parameters
tproperty

Definition at line 600 of file staggered_dist_grid_util.hpp.


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