aimstil
5.0.5
|
A wrapper class of a template expression. More...
#include <til/TExpr.h>
Public Types | |
typedef void | IsATExpr |
Public Member Functions | |
EXPR_RESULT_TYPE (typename Expr::template TypeStruct< Iterator1 TIL_COMMA Iterator2 TIL_COMMA Iterator3 >::Type) | |
TExpr () | |
TExpr (const Expr &e) | |
const Expr & | getExpr () const |
EXPRFUNC_1ARG (operator(), return m_e(i1);) | |
EXPRFUNC_2ARG (operator(), return m_e(i1, i2);) | |
EXPRFUNC_3ARG (operator(), return m_e(i1, i2, i3);) | |
template<typename Expr2 > | |
TExpr< TExprBinaryOperator_NoRes< Expr, Expr2, functor::Assign > > | operator= (const TExpr< Expr2 > &e2) const |
Assignement to one expression. More... | |
template<typename T > | |
TExpr< TExprBinaryOperator_NoRes< Expr, TExprConstant< T >, functor::Assign > > | operator= (const T &value) const |
Assignement to a constant. More... | |
template<typename Expr2 > | |
TExpr< TExprBinaryOperator< Expr, Expr2, functor::Call > > | operator() (const TExpr< Expr2 > &e2) const |
TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR (operator+=, til::expr::functor::AddTo) | |
TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR (operator-=, til::expr::functor::SubTo) | |
TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR (operator*=, til::expr::functor::MulTo) | |
TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR (operator/=, til::expr::functor::DivTo) | |
A wrapper class of a template expression.
The reason for this is that we want all template expressions to be variations of the same template class, so that manipulation with operators is made easier, if not just plain possible.
typedef void til::expr::TExpr< Expr >::IsATExpr |
|
inlineexplicit |
|
inline |
til::expr::TExpr< Expr >::EXPR_RESULT_TYPE | ( | typename Expr::template TypeStruct< Iterator1 TIL_COMMA Iterator2 TIL_COMMA Iterator3 >::Type | ) |
til::expr::TExpr< Expr >::EXPRFUNC_1ARG | ( | operator() | , |
return m_e(i1); | |||
) |
til::expr::TExpr< Expr >::EXPRFUNC_2ARG | ( | operator() | , |
return m_e(i1, i2); | |||
) |
til::expr::TExpr< Expr >::EXPRFUNC_3ARG | ( | operator() | , |
return m_e(i1, i2, i3); | |||
) |
|
inline |
Definition at line 142 of file TExpr.h.
References EXPRFUNC_1ARG, EXPRFUNC_2ARG, and EXPRFUNC_3ARG.
Referenced by til::expr::cast(), til::expr::castTo(), til::expr::if_then(), til::expr::if_then_else(), til::expr::TExpr< Expr >::operator()(), til::expr::TExprFunctorHelper< TFunctor >::operator()(), til::expr::operator,(), til::expr::TExpr< Expr >::operator=(), and til::expr::sqrt().
|
inline |
Definition at line 173 of file TExpr.h.
References til::expr::TExpr< Expr >::getExpr(), and TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR.
|
inline |
Assignement to one expression.
Definition at line 156 of file TExpr.h.
References til::expr::TExpr< Expr >::getExpr().
|
inline |
til::expr::TExpr< Expr >::TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR | ( | operator+ | , |
til::expr::functor::AddTo | |||
) |
til::expr::TExpr< Expr >::TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR | ( | operator- | , |
til::expr::functor::SubTo | |||
) |
til::expr::TExpr< Expr >::TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR | ( | operator* | , |
til::expr::functor::MulTo | |||
) |
til::expr::TExpr< Expr >::TIL_DEFINE_TEXPR_ARITHMETIC_OPERATOR | ( | operator/ | , |
til::expr::functor::DivTo | |||
) |