OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
switch_copy_host_to_device< T_type, prp > Struct Template Reference

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

Detailed Description

template<typename T_type, unsigned int ... prp>
struct switch_copy_host_to_device< T_type, prp >

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 encap into another encap object

Template Parameters
encapsource
encapdst

Definition at line 380 of file map_grid.hpp.

#include <map_grid.hpp>

Public Types

typedef to_boost_vmpl< prp... >::type v_prp
 Convert the packed properties into an MPL vector.
 

Public Member Functions

 switch_copy_host_to_device (typename memory_traits_inte< T_type >::type &dst)
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

memory_traits_inte< T_type >::type & dst
 encapsulated destination object
 

Member Typedef Documentation

◆ v_prp

template<typename T_type , unsigned int ... prp>
typedef to_boost_vmpl<prp...>::type switch_copy_host_to_device< T_type, prp >::v_prp

Convert the packed properties into an MPL vector.

Definition at line 386 of file map_grid.hpp.

Constructor & Destructor Documentation

◆ switch_copy_host_to_device()

template<typename T_type , unsigned int ... prp>
switch_copy_host_to_device< T_type, prp >::switch_copy_host_to_device ( typename memory_traits_inte< T_type >::type &  dst)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 394 of file map_grid.hpp.

Member Function Documentation

◆ operator()()

template<typename T_type , unsigned int ... prp>
template<typename T >
void switch_copy_host_to_device< T_type, prp >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 402 of file map_grid.hpp.

Field Documentation

◆ dst

template<typename T_type , unsigned int ... prp>
memory_traits_inte<T_type>::type& switch_copy_host_to_device< T_type, prp >::dst

encapsulated destination object

Definition at line 383 of file map_grid.hpp.


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