Sum operation. More...
Sum operation.
exp1 | expression1 |
exp2 | expression2 |
Definition at line 137 of file vector_dist_operators.hpp.
#include <vector_dist_operators.hpp>
Public Member Functions | |
vector_dist_expression_op (const exp1 &o1, const exp2 &o2) | |
constructor of the expression to sum two expression | |
void | init () const |
This function must be called before value. More... | |
template<typename r_type = typename std::remove_reference<decltype(o1.value(vect_dist_key_dx()) + o2.value(vect_dist_key_dx()))>::type> | |
r_type | value (const vect_dist_key_dx &key) const |
Evaluate the expression. More... | |
Private Attributes | |
const exp1 | o1 |
expression 1 | |
const exp2 | o2 |
expression 2 | |
|
inline |
This function must be called before value.
it initialize the expression if needed
Definition at line 157 of file vector_dist_operators.hpp.
|
inline |
Evaluate the expression.
key | where to evaluate the expression |
Definition at line 171 of file vector_dist_operators.hpp.