OpenFPM  5.2.0
Project that contain the implementation of distributed structures
mem_setarray< grid_type, Memory > Struct Template Reference

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

#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. More...
 

Data Fields

grid_typegrid_new
 
Memory * mem
 
size_t sz
 
bool np
 

Detailed Description

template<typename grid_type, typename Memory>
struct mem_setarray< grid_type, Memory >

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.

Member Function Documentation

◆ operator()()

template<typename grid_type , typename Memory >
template<typename T >
void mem_setarray< grid_type, Memory >::operator() ( T &  t)
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.


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