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

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

Detailed Description

template<typename aggr_vect, typename reduction_vectors>
struct reduce_op< aggr_vect, 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 142 of file trash_bin.hpp.

#include <trash_bin.hpp>

Public Member Functions

__device__ __host__ reduce_op (aggr_vect &red, reduction_vectors &input)
 constructor
 
template<typename T >
__device__ __host__ void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

aggr_vect & red
 reduction aggregate
 
reduction_vectors & input
 encapsulated input object
 

Constructor & Destructor Documentation

◆ reduce_op()

template<typename aggr_vect , typename reduction_vectors >
__device__ __host__ reduce_op< aggr_vect, reduction_vectors >::reduce_op ( aggr_vect &  red,
reduction_vectors &  input 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 155 of file trash_bin.hpp.

Member Function Documentation

◆ operator()()

template<typename aggr_vect , typename reduction_vectors >
template<typename T >
__device__ __host__ void reduce_op< aggr_vect, reduction_vectors >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 162 of file trash_bin.hpp.

Field Documentation

◆ input

template<typename aggr_vect , typename reduction_vectors >
reduction_vectors& reduce_op< aggr_vect, reduction_vectors >::input

encapsulated input object

Definition at line 147 of file trash_bin.hpp.

◆ red

template<typename aggr_vect , typename reduction_vectors >
aggr_vect& reduce_op< aggr_vect, reduction_vectors >::red

reduction aggregate

Definition at line 145 of file trash_bin.hpp.


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