this class is a functor for "for_each" algorithm More...
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
| aggr_vect | aggregate that where i reduce |
| type | of 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 | |
|
inline |
constructor
| src | source encapsulated object |
| dst | source encapsulated object |
Definition at line 155 of file trash_bin.hpp.
|
inline |
It call the copy function for each property.
Definition at line 162 of file trash_bin.hpp.
| reduction_vectors& reduce_op< aggr_vect, reduction_vectors >::input |
encapsulated input object
Definition at line 147 of file trash_bin.hpp.
| aggr_vect& reduce_op< aggr_vect, reduction_vectors >::red |
reduction aggregate
Definition at line 145 of file trash_bin.hpp.