KASSERT
0.0.1
Karlsruhe Assertion Library
|
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. More... | |
virtual void | stringify (OStreamLogger &out) const =0 |
Write this expression with stringified operands to the given assertion logger. More... | |
Friends | |
OStreamLogger & | operator<< (OStreamLogger &out, Expression const &expr) |
Writes an expression with stringified operands to the given assertion logger. More... | |
Interface for decomposed unary and binary expressions.
|
pure virtual |
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. |