![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Expression-template node applying a unary functor F element-wise to a grid expression E. More...
#include <GridExpression.hpp>
Inheritance diagram for CDPL::Math::GridUnary< E, 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 E::SizeType | SizeType |
| The size type inherited from the wrapped expression. More... | |
| typedef E::DifferenceType | DifferenceType |
| The signed difference type inherited from the wrapped expression. More... | |
Public Types inherited from CDPL::Math::GridExpression< GridUnary< E, F > > | |
| typedef GridUnary< E, F > | ExpressionType |
| The derived grid 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 | |
| GridUnary (const ExpressionType &e) | |
| Constructs the expression-template node wrapping e. More... | |
| SizeType | getSize1 () const |
| Returns the size of the wrapped grid expression along the first dimension. More... | |
| SizeType | getSize2 () const |
| Returns the size of the wrapped grid expression along the second dimension. More... | |
| SizeType | getSize3 () const |
| Returns the size of the wrapped grid expression along the third dimension. More... | |
| ConstReference | operator() (SizeType i, SizeType j, SizeType k) const |
| Applies the unary functor to the element at (i, j, k) of the wrapped expression and returns the result. More... | |
Public Member Functions inherited from CDPL::Math::GridExpression< GridUnary< E, F > > | |
| const ExpressionType & | operator() () const |
Returns a const reference to the derived grid expression. More... | |
| ExpressionType & | operator() () |
| Returns a reference to the derived grid expression. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CDPL::Math::GridExpression< GridUnary< E, F > > | |
| GridExpression () | |
| ~GridExpression () | |
Protected Member Functions inherited from CDPL::Math::Expression< E > | |
| Expression () | |
| ~Expression () | |
Expression-template node applying a unary functor F element-wise to a grid expression E.
| E | The wrapped grid expression type. |
| F | The unary functor type. |
| typedef F::ResultType CDPL::Math::GridUnary< E, F >::ValueType |
The element value type of the expression (the functor's result type).
| typedef const ValueType CDPL::Math::GridUnary< E, F >::ConstReference |
Constant reference type to an element value.
| typedef const ValueType CDPL::Math::GridUnary< E, F >::Reference |
Mutable reference type (degrades to const for expression-template results).
| typedef const SelfType CDPL::Math::GridUnary< E, F >::ConstClosureType |
Constant closure type used when this expression appears inside another expression.
| typedef SelfType CDPL::Math::GridUnary< E, F >::ClosureType |
Closure type used when this expression appears inside another expression.
| typedef E::SizeType CDPL::Math::GridUnary< E, F >::SizeType |
The size type inherited from the wrapped expression.
| typedef E::DifferenceType CDPL::Math::GridUnary< E, F >::DifferenceType |
The signed difference type inherited from the wrapped expression.
|
inline |
Constructs the expression-template node wrapping e.
| e | The grid expression to wrap. |
|
inline |
Returns the size of the wrapped grid expression along the first dimension.
|
inline |
Returns the size of the wrapped grid expression along the second dimension.
|
inline |
Returns the size of the wrapped grid expression along the third dimension.
|
inline |
Applies the unary functor to the element at (i, j, k) of the wrapped expression and returns the result.
| i | The zero-based first-dimension index. |
| j | The zero-based second-dimension index. |
| k | The zero-based third-dimension index. |