OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
copy_fast_1d_device_memory< lin_or_inte, data_type, S > Struct Template Reference

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

Detailed Description

template<bool lin_or_inte, typename data_type, typename S>
struct copy_fast_1d_device_memory< lin_or_inte, data_type, S >

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 one device memory into another device memory

Template Parameters
encapsource
encapdst

Definition at line 35 of file copy_grid_fast.hpp.

#include <copy_grid_fast.hpp>

Public Member Functions

 copy_fast_1d_device_memory (data_type &data_src, data_type &data_dst)
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

data_type & data_src
 set of pointers
 
data_type & data_dst
 

Constructor & Destructor Documentation

◆ copy_fast_1d_device_memory()

template<bool lin_or_inte, typename data_type , typename S >
copy_fast_1d_device_memory< lin_or_inte, data_type, S >::copy_fast_1d_device_memory ( data_type &  data_src,
data_type &  data_dst 
)
inline

constructor

Parameters
vset of pointer buffers to set

Definition at line 47 of file copy_grid_fast.hpp.

Member Function Documentation

◆ operator()()

template<bool lin_or_inte, typename data_type , typename S >
template<typename T >
void copy_fast_1d_device_memory< lin_or_inte, data_type, S >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 53 of file copy_grid_fast.hpp.

Field Documentation

◆ data_dst

template<bool lin_or_inte, typename data_type , typename S >
data_type& copy_fast_1d_device_memory< lin_or_inte, data_type, S >::data_dst

Definition at line 40 of file copy_grid_fast.hpp.

◆ data_src

template<bool lin_or_inte, typename data_type , typename S >
data_type& copy_fast_1d_device_memory< lin_or_inte, data_type, S >::data_src

set of pointers

Definition at line 38 of file copy_grid_fast.hpp.


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