OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
store_reduce_op_final< red_type, encap_type, reduction_vectors > Struct Template Reference

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

Detailed Description

template<typename red_type, typename encap_type, typename reduction_vectors>
struct store_reduce_op_final< red_type, encap_type, reduction_vectors >

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
aggr_vectaggregate that where i reduce
typeof reduction to operare

Definition at line 225 of file trash_bin.hpp.

#include <trash_bin.hpp>

Public Types

typedef boost::mpl::size< reduction_vectors >::type nred
 

Public Member Functions

__device__ __host__ store_reduce_op_final (encap_type &destination, red_type(&red_final)[nred::value])
 constructor
 
template<typename T >
__device__ __host__ void operator() (T &t)
 It call the copy function for each property.
 

Data Fields

red_type(& red_final )[nred::value]
 
encap_type & destination
 

Member Typedef Documentation

◆ nred

template<typename red_type , typename encap_type , typename reduction_vectors >
typedef boost::mpl::size<reduction_vectors>::type store_reduce_op_final< red_type, encap_type, reduction_vectors >::nred

Definition at line 227 of file trash_bin.hpp.

Constructor & Destructor Documentation

◆ store_reduce_op_final()

template<typename red_type , typename encap_type , typename reduction_vectors >
__device__ __host__ store_reduce_op_final< red_type, encap_type, reduction_vectors >::store_reduce_op_final ( encap_type &  destination,
red_type(&)  red_final[nred::value] 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 239 of file trash_bin.hpp.

Member Function Documentation

◆ operator()()

template<typename red_type , typename encap_type , typename reduction_vectors >
template<typename T >
__device__ __host__ void store_reduce_op_final< red_type, encap_type, reduction_vectors >::operator() ( T &  t)
inline

It call the copy function for each property.

Definition at line 246 of file trash_bin.hpp.

Field Documentation

◆ destination

template<typename red_type , typename encap_type , typename reduction_vectors >
encap_type& store_reduce_op_final< red_type, encap_type, reduction_vectors >::destination

Definition at line 231 of file trash_bin.hpp.

◆ red_final

template<typename red_type , typename encap_type , typename reduction_vectors >
red_type(& store_reduce_op_final< red_type, encap_type, reduction_vectors >::red_final)[nred::value]

Definition at line 229 of file trash_bin.hpp.


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