|
kassert
1.0.0
Assertion library for KaMPIng
|
Interface for decomposed unary and binary expressions. More...
#include <expression_decomposition.hpp>

Public Member Functions | |
| virtual | ~Expression ()=default |
| Virtual destructor since we use virtual functions. | |
| virtual bool | result () const =0 |
| Evaluate the assertion wrapped in this Expr. | |
| virtual void | stringify (OStreamLogger &out) const =0 |
| Write this expression with stringified operands to the given assertion logger. | |
Friends | |
| OStreamLogger & | operator<< (OStreamLogger &out, Expression const &expr) |
| Writes an expression with stringified operands to the given assertion logger. | |
Interface for decomposed unary and binary expressions.
Evaluate the assertion wrapped in this Expr.
Implemented in kassert::internal::BinaryExpression< LhsT, RhsT >, and kassert::internal::UnaryExpression< LhsT >.
|
pure virtual |
Write this expression with stringified operands to the given assertion logger.
| out | The assertion logger. |
Implemented in kassert::internal::BinaryExpression< LhsT, RhsT >, and kassert::internal::UnaryExpression< LhsT >.
|
friend |
Writes an expression with stringified operands to the given assertion logger.
| out | The assertion logger. |
| expr | The expression to be stringified. |