Multiplication operation.
More...
template<typename orig, typename exp1, typename exp2>
class point_expression_op< orig, exp1, exp2, POINT_MUL_POINT >
Multiplication operation.
- Template Parameters
-
orig | original type |
exp1 | expression1 |
exp2 | expression2 |
op | operation |
Definition at line 459 of file Point_operators.hpp.
#include <Point_operators.hpp>
|
typedef orig | orig_type |
| base type of the expression
|
|
typedef int | has_init |
| indicate that init must be called before value
|
|
typedef int | is_expression |
| indicate that this class encapsulate an expression
|
|
typedef orig::coord_type | return_type |
| return type of the expression
|
|
|
| point_expression_op (const exp1 &o1, const exp2 &o2) |
| constructor from 2 expressions More...
|
|
void | init () const |
| This function must be called before value. More...
|
|
template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type> |
r_type | value (size_t k) const |
| Evaluate the expression. More...
|
|
template<typename T , typename test = typename boost::disable_if_c< std::is_same<T,orig>::value >::type> |
| operator T () const |
| cast to other type
|
|
|
static const unsigned int | nvals = 1 |
| this operation produce a scalar as result
|
|
|
const exp1 | o1 |
| first expression
|
|
const exp2 | o2 |
| second expression
|
|
std::remove_const< typename
orig::coord_type >::type | scal |
| the expression produce a scalar
|
|
template<typename orig , typename exp1 , typename exp2 >
constructor from 2 expressions
- Parameters
-
o1 | expression 1 |
o2 | expression 2 |
Definition at line 492 of file Point_operators.hpp.
template<typename orig , typename exp1 , typename exp2 >
This function must be called before value.
it calculate the scalar product before return the values
Definition at line 501 of file Point_operators.hpp.
template<typename orig , typename exp1 , typename exp2 >
template<typename r_type = typename std::remove_reference<decltype(o1.value(0))>::type>
Evaluate the expression.
- Parameters
-
k | where to evaluate the expression |
- Returns
- the expression value
Definition at line 517 of file Point_operators.hpp.
The documentation for this class was generated from the following file: