OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
frswap< s_m > Struct Template Reference

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

Detailed Description

template<typename s_m>
struct frswap< s_m >

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

Parameters
TType of memory allocator

Definition at line 59 of file grid_base_impl_layout.hpp.

#include <grid_base_impl_layout.hpp>

Public Member Functions

 frswap (s_m &swap_dst, s_m &swap_src)
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the allocate function for each member.
 

Data Fields

s_m & swap_src
 
s_m & swap_dst
 

Constructor & Destructor Documentation

◆ frswap()

template<typename s_m >
frswap< s_m >::frswap ( s_m &  swap_dst,
s_m &  swap_src 
)
inline

constructor

Definition at line 65 of file grid_base_impl_layout.hpp.

Member Function Documentation

◆ operator()()

template<typename s_m >
template<typename T >
void frswap< s_m >::operator() ( T &  t) const
inline

It call the allocate function for each member.

Definition at line 71 of file grid_base_impl_layout.hpp.

Field Documentation

◆ swap_dst

template<typename s_m >
s_m& frswap< s_m >::swap_dst

Definition at line 62 of file grid_base_impl_layout.hpp.

◆ swap_src

template<typename s_m >
s_m& frswap< s_m >::swap_src

Definition at line 61 of file grid_base_impl_layout.hpp.


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