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 set an external memory for each
Definition at line 202 of file grid_base_impl_layout.hpp.
#include <grid_base_impl_layout.hpp>
Public Member Functions | |
mem_setarray (grid_type &g_new, Memory *mem, size_t sz, bool np) | |
constructor | |
template<typename T > | |
void | operator() (T &t) |
It call the copy function for each property. | |
Data Fields | |
grid_type & | grid_new |
Memory * | mem |
size_t | sz |
bool | np |
|
inline |
constructor
Definition at line 217 of file grid_base_impl_layout.hpp.
|
inline |
It call the copy function for each property.
Allocate the memory and create the reppresentation
Definition at line 223 of file grid_base_impl_layout.hpp.
grid_type& mem_setarray< grid_type, Memory >::grid_new |
Definition at line 204 of file grid_base_impl_layout.hpp.
Memory* mem_setarray< grid_type, Memory >::mem |
Definition at line 206 of file grid_base_impl_layout.hpp.
bool mem_setarray< grid_type, Memory >::np |
Definition at line 210 of file grid_base_impl_layout.hpp.
size_t mem_setarray< grid_type, Memory >::sz |
Definition at line 208 of file grid_base_impl_layout.hpp.