OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
mem_setarray< grid_type, Memory > Struct Template Reference

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

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.

#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_typegrid_new
 
Memory * mem
 
size_t sz
 
bool np
 

Constructor & Destructor Documentation

◆ mem_setarray()

template<typename grid_type , typename Memory >
mem_setarray< grid_type, Memory >::mem_setarray ( grid_type g_new,
Memory *  mem,
size_t  sz,
bool  np 
)
inline

constructor

Definition at line 217 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.

Field Documentation

◆ grid_new

template<typename grid_type , typename Memory >
grid_type& mem_setarray< grid_type, Memory >::grid_new

Definition at line 204 of file grid_base_impl_layout.hpp.

◆ mem

template<typename grid_type , typename Memory >
Memory* mem_setarray< grid_type, Memory >::mem

Definition at line 206 of file grid_base_impl_layout.hpp.

◆ np

template<typename grid_type , typename Memory >
bool mem_setarray< grid_type, Memory >::np

Definition at line 210 of file grid_base_impl_layout.hpp.

◆ sz

template<typename grid_type , typename Memory >
size_t mem_setarray< grid_type, Memory >::sz

Definition at line 208 of file grid_base_impl_layout.hpp.


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