OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
vector_dist_expression_op< exp1, vector_type, VECT_SUM_REDUCE > Class Template Reference

expression that encapsulate a vector reduction expression More...

Detailed Description

template<typename exp1, typename vector_type>
class vector_dist_expression_op< exp1, vector_type, VECT_SUM_REDUCE >

expression that encapsulate a vector reduction expression

Template Parameters
exp1expression 1
vector_typetype of vector on which the expression is acting

Definition at line 217 of file vector_dist_operators_functions.hpp.

#include <vector_dist_operators_functions.hpp>

Public Member Functions

 vector_dist_expression_op (const exp1 &o1, const vector_type &vd)
 constructor from an epxression exp1 and a vector vd
 
void init () const
 sum reduction require initialization where we calculate the reduction
 
std::remove_reference< rtype >
::type 
get ()
 it return the result of the expression
 
template<typename r_type = typename std::remove_reference<rtype>::type>
r_type value (const vect_dist_key_dx &key) const
 it return the result of the expression (precalculated before)
 

Private Types

typedef apply_kernel_rtype
< decltype(o1.value(vect_dist_key_dx()))>
::rtype 
rtype
 return type of this expression
 

Private Attributes

const exp1 o1
 expression on which apply the reduction
 
std::remove_reference< rtype >
::type 
val
 return type of the calculated value (without reference)
 
const vector_typevd
 vector on which we apply the reduction expression
 

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