this class is a functor for "for_each" algorithm More...
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 copy one object into one target grid element in a generic way for a generic object T with variable number of property
dim | Dimensionality |
S | type of grid |
Memory | type of memory needed for encap |
Definition at line 108 of file grid_common.hpp.
#include <grid_common.hpp>
Public Types | |
typedef S::value_type | obj_type |
type of the object we have to set | |
typedef S::value_type::type | ov_seq |
type of the object boost::sequence | |
Public Member Functions | |
copy_cpu_encap (grid_key_dx< dim > &key, S &grid_dst, const encapc< 1, obj_type, Memory > &obj) | |
constructor | |
template<typename T > | |
void | operator() (T &t) const |
It call the copy function for each property. | |
Data Fields | |
grid_key_dx< dim > & | key |
size to allocate | |
S & | grid_dst |
grid where we have to store the data | |
const encapc< 1, obj_type, Memory > & | obj |
object we have to store | |
typedef S::value_type copy_cpu_encap< dim, S, Memory >::obj_type |
type of the object we have to set
Definition at line 117 of file grid_common.hpp.
typedef S::value_type::type copy_cpu_encap< dim, S, Memory >::ov_seq |
type of the object boost::sequence
Definition at line 120 of file grid_common.hpp.
|
inline |
constructor
It define the copy parameters.
key | which element we are modifying |
grid_dst | grid we are updating |
obj | object we have to set in grid_dst (encapsulated) |
Definition at line 134 of file grid_common.hpp.
|
inline |
It call the copy function for each property.
Definition at line 152 of file grid_common.hpp.
S& copy_cpu_encap< dim, S, Memory >::grid_dst |
grid where we have to store the data
Definition at line 114 of file grid_common.hpp.
grid_key_dx<dim>& copy_cpu_encap< dim, S, Memory >::key |
size to allocate
Definition at line 111 of file grid_common.hpp.
const encapc<1,obj_type,Memory>& copy_cpu_encap< dim, S, Memory >::obj |
object we have to store
Definition at line 123 of file grid_common.hpp.