OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
copy_sz< dim, mpl_v > Struct Template Reference

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

Detailed Description

template<unsigned int dim, typename mpl_v>
struct copy_sz< dim, mpl_v >

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 a boost::mpl::vector into runtime array

Definition at line 253 of file SparseGrid.hpp.

#include <SparseGrid.hpp>

Public Member Functions

 copy_sz (size_t(&sz)[dim])
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

size_t(& sz )[dim]
 sz site_t
 

Constructor & Destructor Documentation

◆ copy_sz()

template<unsigned int dim, typename mpl_v >
copy_sz< dim, mpl_v >::copy_sz ( size_t(&)  sz[dim])
inline

constructor

Parameters
szruntime sz to fill

Definition at line 264 of file SparseGrid.hpp.

Member Function Documentation

◆ operator()()

template<unsigned int dim, typename mpl_v >
template<typename T >
void copy_sz< dim, mpl_v >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 271 of file SparseGrid.hpp.

Field Documentation

◆ sz

template<unsigned int dim, typename mpl_v >
size_t(& copy_sz< dim, mpl_v >::sz)[dim]

sz site_t

Definition at line 256 of file SparseGrid.hpp.


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