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

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

Detailed Description

template<typename T_type, template< typename > class layout_base, unsigned int ... prp>
struct device_to_host_start_stop_impl< T_type, layout_base, 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 15 of file hostDevice_util_funcs.hpp.

#include <hostDevice_util_funcs.hpp>

Public Types

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

Public Member Functions

 device_to_host_start_stop_impl (typename layout_base< T_type >::type &dst, size_t start, size_t stop)
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

layout_base< T_type >::type & dst
 encapsulated destination object
 
size_t start
 start
 
size_t stop
 stop
 

Member Typedef Documentation

◆ v_prp

template<typename T_type , template< typename > class layout_base, unsigned int ... prp>
typedef to_boost_vmpl<prp...>::type device_to_host_start_stop_impl< T_type, layout_base, prp >::v_prp

Convert the packed properties into an MPL vector.

Definition at line 21 of file hostDevice_util_funcs.hpp.

Constructor & Destructor Documentation

◆ device_to_host_start_stop_impl()

template<typename T_type , template< typename > class layout_base, unsigned int ... prp>
device_to_host_start_stop_impl< T_type, layout_base, prp >::device_to_host_start_stop_impl ( typename layout_base< T_type >::type &  dst,
size_t  start,
size_t  stop 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 35 of file hostDevice_util_funcs.hpp.

Member Function Documentation

◆ operator()()

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

It call the copy function for each property.

Definition at line 43 of file hostDevice_util_funcs.hpp.

Field Documentation

◆ dst

template<typename T_type , template< typename > class layout_base, unsigned int ... prp>
layout_base<T_type>::type& device_to_host_start_stop_impl< T_type, layout_base, prp >::dst

encapsulated destination object

Definition at line 18 of file hostDevice_util_funcs.hpp.

◆ start

template<typename T_type , template< typename > class layout_base, unsigned int ... prp>
size_t device_to_host_start_stop_impl< T_type, layout_base, prp >::start

start

Definition at line 24 of file hostDevice_util_funcs.hpp.

◆ stop

template<typename T_type , template< typename > class layout_base, unsigned int ... prp>
size_t device_to_host_start_stop_impl< T_type, layout_base, prp >::stop

stop

Definition at line 27 of file hostDevice_util_funcs.hpp.


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