OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
interp_points< dim, n_prop, 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, unsigned int n_prop, typename v_prp_id, typename v_prp_type>
struct interp_points< dim, n_prop, 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

 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.
 

Member Typedef Documentation

◆ v_size

template<unsigned int dim, unsigned int n_prop, typename v_prp_id , typename v_prp_type >
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.

Constructor & Destructor Documentation

◆ interp_points()

template<unsigned int dim, unsigned int n_prop, typename v_prp_id , typename v_prp_type >
interp_points< dim, n_prop, 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[n_prop] 
)
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.

Member Function Documentation

◆ operator()()

template<unsigned int dim, unsigned int n_prop, typename v_prp_id , typename v_prp_type >
template<typename T >
void interp_points< dim, n_prop, v_prp_id, v_prp_type >::operator() ( T &  t)
inline

It call the copy function for each property.

Definition at line 861 of file staggered_dist_grid_util.hpp.


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