![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Expression-template node combining a scalar E1 (lhs) and a vector expression E2 (rhs) element-wise via the binary functor F. More...
#include <VectorExpression.hpp>
Inheritance diagram for CDPL::Math::Scalar1VectorBinary< E1, E2, F >:Public Types | |
| typedef F::ResultType | ValueType |
| The element value type of the expression (the functor's result type). More... | |
| typedef const ValueType | ConstReference |
| Constant reference type to an element value. More... | |
| typedef const ValueType | Reference |
Mutable reference type (degrades to const for expression-template results). More... | |
| typedef const SelfType | ConstClosureType |
| Constant closure type used when this expression appears inside another expression. More... | |
| typedef SelfType | ClosureType |
| Closure type used when this expression appears inside another expression. More... | |
| typedef E2::SizeType | SizeType |
| The size type inherited from the wrapped vector expression. More... | |
| typedef E2::DifferenceType | DifferenceType |
| The signed difference type inherited from the wrapped vector expression. More... | |
Public Types inherited from CDPL::Math::VectorExpression< Scalar1VectorBinary< E1, E2, F > > | |
| typedef Scalar1VectorBinary< E1, E2, F > | ExpressionType |
| The derived vector expression type. More... | |
Public Types inherited from CDPL::Math::Expression< E > | |
| typedef E | ExpressionType |
| The derived expression type (made available to expression-template machinery). More... | |
Public Member Functions | |
| Scalar1VectorBinary (const Expression1Type &e1, const Expression2Type &e2) | |
| Constructs the expression-template node combining the scalar e1 and the vector expression e2. More... | |
| SizeType | getSize () const |
| Returns the wrapped vector expression's size. More... | |
| ConstReference | operator() (SizeType i) const |
| Applies the binary functor to the scalar and element i of the wrapped vector expression and returns the result. More... | |
| ConstReference | operator[] (SizeType i) const |
| Alias for operator() — applies the binary functor to the scalar and element i of the wrapped expression. More... | |
Public Member Functions inherited from CDPL::Math::VectorExpression< Scalar1VectorBinary< E1, E2, F > > | |
| const ExpressionType & | operator() () const |
Returns a const reference to the derived vector expression. More... | |
| ExpressionType & | operator() () |
| Returns a reference to the derived vector expression. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CDPL::Math::VectorExpression< Scalar1VectorBinary< E1, E2, F > > | |
| VectorExpression () | |
| ~VectorExpression () | |
Protected Member Functions inherited from CDPL::Math::Expression< E > | |
| Expression () | |
| ~Expression () | |
Expression-template node combining a scalar E1 (lhs) and a vector expression E2 (rhs) element-wise via the binary functor F.
| E1 | The scalar type appearing on the left-hand side. |
| E2 | The wrapped vector expression type. |
| F | The binary functor type. |
| typedef F::ResultType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::ValueType |
The element value type of the expression (the functor's result type).
| typedef const ValueType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::ConstReference |
Constant reference type to an element value.
| typedef const ValueType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::Reference |
Mutable reference type (degrades to const for expression-template results).
| typedef const SelfType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::ConstClosureType |
Constant closure type used when this expression appears inside another expression.
| typedef SelfType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::ClosureType |
Closure type used when this expression appears inside another expression.
| typedef E2::SizeType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::SizeType |
The size type inherited from the wrapped vector expression.
| typedef E2::DifferenceType CDPL::Math::Scalar1VectorBinary< E1, E2, F >::DifferenceType |
The signed difference type inherited from the wrapped vector expression.
|
inline |
Constructs the expression-template node combining the scalar e1 and the vector expression e2.
| e1 | The scalar value on the left-hand side. |
| e2 | The vector expression on the right-hand side. |
|
inline |
Returns the wrapped vector expression's size.
|
inline |
Applies the binary functor to the scalar and element i of the wrapped vector expression and returns the result.
| i | The zero-based element index. |
|
inline |
Alias for operator() — applies the binary functor to the scalar and element i of the wrapped expression.
| i | The zero-based element index. |