A wrapper for expressions that need to be optimized.
More...
#include <optimized_expr.hpp>
|
|
struct | wrapper_traits< optimized_expr > |
| |
| std::ostream & | operator<< (std::ostream &os, const optimized_expr &expr) |
| | Prints the type of the optimized expression to the stream. More...
|
| |
template<typename Expr>
struct etl::optimized_expr< Expr >
A wrapper for expressions that need to be optimized.
◆ optimized_expr()
Construt a new optimized expression around the given ETL expression.
- Parameters
-
◆ alias()
template<typename Expr >
template<typename E >
Test if this expression aliases with the given expression.
- Parameters
-
| other | The other expression to test |
- Returns
- true if the two expressions aliases, false otherwise
◆ assign_add_to()
template<typename Expr >
template<typename L >
Add to the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_div_to()
template<typename Expr >
template<typename L >
Divide the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_mod_to()
template<typename Expr >
template<typename L >
Modulo the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_mul_to()
template<typename Expr >
template<typename L >
Multiply the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_sub_to()
template<typename Expr >
template<typename L >
Sub from the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_to()
template<typename Expr >
template<typename L >
Assign to the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ operator<<
template<typename Expr >
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const optimized_expr< Expr > & |
expr |
|
) |
| |
|
friend |
Prints the type of the optimized expression to the stream.
- Parameters
-
| os | The output stream |
| expr | The expression to print |
- Returns
- the output stream
The documentation for this struct was generated from the following file: