expression that encapsulate a vector reduction expression More...
expression that encapsulate a vector reduction expression
exp1 | expression 1 |
vector_type | type 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_type & | vd |
vector on which we apply the reduction expression | |