OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
interp_points< dim, v_prp_id, v_prp_type > Struct Template Reference

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

Detailed Description

template<unsigned int dim, typename v_prp_id, typename v_prp_type>
struct interp_points< dim, v_prp_id, v_prp_type >

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

Template Parameters
dimDimensionality
v_prp_idvector of properties id
v_prp_typevector 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

openfpm::vector< std::vector
< comb< dim > > >(&interp_pts)[v_size
const openfpm::vector< comb
< dim > >(&stag_pos)[v_size 
interp_points (openfpm::vector< std::vector< comb< dim >>>(&interp_pts)[v_size::value], const openfpm::vector< comb< dim >>(&stag_pos)[v_size::value])
 constructor More...
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property.
 

Constructor & Destructor Documentation

template<unsigned int dim, typename v_prp_id, typename v_prp_type>
openfpm::vector<std::vector<comb<dim> > > (& interp_pts)[v_size const openfpm::vector<comb<dim> > (&stag_pos)[v_size interp_points< dim, v_prp_id, v_prp_type >::interp_points ( openfpm::vector< std::vector< comb< dim >>>(&)  interp_pts[v_size::value],
const openfpm::vector< comb< dim >>(&)  stag_pos[v_size::value] 
)
inline

constructor

It define the copy parameters.

Parameters
inter_ptsarray that for each property contain the interpolation points for each components
staggeredposition for each property and components

Definition at line 856 of file staggered_dist_grid_util.hpp.


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