A wrapper for expressions that need to be timed.
More...
#include <timed_expr.hpp>
|
| | timed_expr (Expr l) |
| | Construt a new timed expression around the given ETL expression. More...
|
| |
|
| timed_expr (const timed_expr &e)=default |
| |
|
| timed_expr (timed_expr &&e) noexcept=default |
| |
|
timed_expr & | operator= (const timed_expr &e)=delete |
| |
|
timed_expr & | operator= (timed_expr &&e)=delete |
| |
| template<typename E > |
| bool | alias (const E &other) const noexcept |
| | Test if this expression aliases with the given expression. More...
|
| |
| template<typename L > |
| void | assign_to (L &&lhs) const |
| | Assign to the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_add_to (L &&lhs) const |
| | Add to the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_sub_to (L &&lhs) const |
| | Sub from the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_mul_to (L &&lhs) const |
| | Multiply the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_div_to (L &&lhs) const |
| | Divide the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_mod_to (L &&lhs) const |
| | Modulo the given left-hand-side expression. More...
|
| |
|
|
struct | wrapper_traits< timed_expr > |
| |
| std::ostream & | operator<< (std::ostream &os, const timed_expr &expr) |
| | Prints the type of the timed expression to the stream. More...
|
| |
template<typename Expr, typename R>
struct etl::timed_expr< Expr, R >
A wrapper for expressions that need to be timed.
◆ timed_expr()
template<typename Expr , typename R >
Construt a new timed expression around the given ETL expression.
- Parameters
-
◆ alias()
template<typename Expr , typename R >
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 , typename R >
template<typename L >
Add to the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_div_to()
template<typename Expr , typename R >
template<typename L >
Divide the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_mod_to()
template<typename Expr , typename R >
template<typename L >
Modulo the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_mul_to()
template<typename Expr , typename R >
template<typename L >
Multiply the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_sub_to()
template<typename Expr , typename R >
template<typename L >
Sub from the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ assign_to()
template<typename Expr , typename R >
template<typename L >
Assign to the given left-hand-side expression.
- Parameters
-
| lhs | The expression to which assign |
◆ operator<<
template<typename Expr , typename R >
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const timed_expr< Expr, R > & |
expr |
|
) |
| |
|
friend |
Prints the type of the timed 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: