kassert
0.2.2
Assertion library for KaMPIng
|
A decomposed binary expression. More...
#include <expression_decomposition.hpp>
Public Member Functions | |
BinaryExpression (bool const result, LhsT const &lhs, std::string_view const op, RhsT const &rhs) | |
Constructs a decomposed binary expression. | |
bool | result () const final |
The boolean result of the expression. This is used when retrieving the expression result after decomposition. | |
operator bool () | |
Implicitly cast to bool. This is used when encountering && or ||. | |
void | stringify (OStreamLogger &out) const final |
Writes this expression with stringified operands to the given assertion logger. | |
![]() | |
virtual | ~Expression ()=default |
Virtual destructor since we use virtual functions. | |
A decomposed binary expression.
LhsT | Decomposed type of the left hand side of the expression. |
RhsT | Decomposed type of the right hand side of the expression. |
|
inline |
Constructs a decomposed binary expression.
result | Boolean result of the expression. |
lhs | Decomposed left hand side of the expression. |
op | Stringified operator or relation. |
rhs | Decomposed right hand side of the expression. |
|
inline |
Implicitly cast to bool. This is used when encountering && or ||.
|
inlinefinalvirtual |
The boolean result of the expression. This is used when retrieving the expression result after decomposition.
Implements kassert::internal::Expression.
|
inlinefinalvirtual |
Writes this expression with stringified operands to the given assertion logger.
out | The assertion logger. |
Implements kassert::internal::Expression.