OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
openfpm::sparse_vector_reduction_solve_conflict_reduce_cpu< encap_src, encap_dst, vector_reduction, impl > Struct Template Reference

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

Detailed Description

template<typename encap_src, typename encap_dst, typename vector_reduction, unsigned int impl>
struct openfpm::sparse_vector_reduction_solve_conflict_reduce_cpu< encap_src, encap_dst, vector_reduction, impl >

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 565 of file map_vector_sparse.hpp.

#include <map_vector_sparse.hpp>

Public Member Functions

 sparse_vector_reduction_solve_conflict_reduce_cpu (encap_src &src, encap_dst &dst)
 constructor
 
template<typename T >
void operator() (T &t) const
 It call the copy function for each property.
 

Data Fields

encap_src & src
 source
 
encap_dst & dst
 destination
 

Constructor & Destructor Documentation

◆ sparse_vector_reduction_solve_conflict_reduce_cpu()

template<typename encap_src , typename encap_dst , typename vector_reduction , unsigned int impl>
openfpm::sparse_vector_reduction_solve_conflict_reduce_cpu< encap_src, encap_dst, vector_reduction, impl >::sparse_vector_reduction_solve_conflict_reduce_cpu ( encap_src &  src,
encap_dst &  dst 
)
inline

constructor

Parameters
srcsource encapsulated object
dstsource encapsulated object

Definition at line 580 of file map_vector_sparse.hpp.

Member Function Documentation

◆ operator()()

template<typename encap_src , typename encap_dst , typename vector_reduction , unsigned int impl>
template<typename T >
void openfpm::sparse_vector_reduction_solve_conflict_reduce_cpu< encap_src, encap_dst, vector_reduction, impl >::operator() ( T &  t) const
inline

It call the copy function for each property.

Definition at line 586 of file map_vector_sparse.hpp.

Field Documentation

◆ dst

template<typename encap_src , typename encap_dst , typename vector_reduction , unsigned int impl>
encap_dst& openfpm::sparse_vector_reduction_solve_conflict_reduce_cpu< encap_src, encap_dst, vector_reduction, impl >::dst

destination

Definition at line 571 of file map_vector_sparse.hpp.

◆ src

template<typename encap_src , typename encap_dst , typename vector_reduction , unsigned int impl>
encap_src& openfpm::sparse_vector_reduction_solve_conflict_reduce_cpu< encap_src, encap_dst, vector_reduction, impl >::src

source

Definition at line 568 of file map_vector_sparse.hpp.


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