OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
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

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 More...
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

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)


srcsource encapsulated object
dstsource encapsulated object

Definition at line 394 of file map_grid.hpp.

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