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
encap | source |
encap | dst |
Definition at line 417 of file map_vector_sparse.hpp.
#include <map_vector_sparse.hpp>
Public Member Functions | |
sparse_vector_reduction_cpu (vector_data_type &vector_data_red, vector_data_type &vector_data, vector_index_type &vector_index, vector_index_type_reo &reorder_add_index_cpu) | |
constructor | |
template<typename T > | |
void | operator() (T &t) const |
It call the copy function for each property. | |
Data Fields | |
vector_data_type & | vector_data_red |
Vector in which to the reduction. | |
vector_data_type & | vector_data |
Vector in which to the reduction. | |
vector_index_type_reo & | reorder_add_index_cpu |
reorder vector index | |
vector_index_type & | vector_index |
Index type vector. | |
|
inline |
constructor
src | source encapsulated object |
dst | source encapsulated object |
Definition at line 437 of file map_vector_sparse.hpp.
|
inline |
It call the copy function for each property.
Definition at line 446 of file map_vector_sparse.hpp.
vector_index_type_reo& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::reorder_add_index_cpu |
reorder vector index
Definition at line 426 of file map_vector_sparse.hpp.
vector_data_type& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::vector_data |
Vector in which to the reduction.
Definition at line 423 of file map_vector_sparse.hpp.
vector_data_type& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::vector_data_red |
Vector in which to the reduction.
Definition at line 420 of file map_vector_sparse.hpp.
vector_index_type& openfpm::sparse_vector_reduction_cpu< vector_data_type, vector_index_type, vector_index_type_reo, vector_reduction, impl >::vector_index |
Index type vector.
Definition at line 429 of file map_vector_sparse.hpp.