OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
setBackground_impl< aggrT_src, local_grids_type > Struct Template Reference

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

Detailed Description

template<typename aggrT_src, typename local_grids_type>
struct setBackground_impl< aggrT_src, local_grids_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 call hostToDevice for each properties

Definition at line 22 of file grid_common.hpp.

#include <grid_common.hpp>

Public Member Functions

 setBackground_impl (aggrT_src &bck, local_grids_type &loc_grid)
 
template<typename T >
void operator() (T &t)
 It call the copy function for each property.
 

Data Fields

aggrT_src & bck
 
local_grids_type & loc_grid
 

Constructor & Destructor Documentation

◆ setBackground_impl()

template<typename aggrT_src , typename local_grids_type >
setBackground_impl< aggrT_src, local_grids_type >::setBackground_impl ( aggrT_src &  bck,
local_grids_type &  loc_grid 
)
inline

Definition at line 28 of file grid_common.hpp.

Member Function Documentation

◆ operator()()

template<typename aggrT_src , typename local_grids_type >
template<typename T >
void setBackground_impl< aggrT_src, local_grids_type >::operator() ( T &  t)
inline

It call the copy function for each property.

Definition at line 34 of file grid_common.hpp.

Field Documentation

◆ bck

template<typename aggrT_src , typename local_grids_type >
aggrT_src& setBackground_impl< aggrT_src, local_grids_type >::bck

Definition at line 24 of file grid_common.hpp.

◆ loc_grid

template<typename aggrT_src , typename local_grids_type >
local_grids_type& setBackground_impl< aggrT_src, local_grids_type >::loc_grid

Definition at line 26 of file grid_common.hpp.


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