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, exp2, VECT_DIV > Class Template Reference

Division operation. More...

Detailed Description

template<typename exp1, typename exp2>
class vector_dist_expression_op< exp1, exp2, VECT_DIV >

Division operation.

Template Parameters
exp1expression1
exp2expression2

Definition at line 277 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 from two expressions
 
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
 

Member Function Documentation

template<typename exp1 , typename exp2 >
void vector_dist_expression_op< exp1, exp2, VECT_DIV >::init ( ) const
inline

This function must be called before value.

it initialize the expression if needed

Definition at line 297 of file vector_dist_operators.hpp.

template<typename exp1 , typename exp2 >
template<typename r_type = typename std::remove_reference<decltype(o1.value(vect_dist_key_dx()) / o2.value(vect_dist_key_dx()))>::type>
r_type vector_dist_expression_op< exp1, exp2, VECT_DIV >::value ( const vect_dist_key_dx key) const
inline

Evaluate the expression.

Parameters
keywhere to evaluate the expression
Returns
the result of the expression

Definition at line 310 of file vector_dist_operators.hpp.


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