|
| | 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.
|
| |
| 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.
|
| |
template<typename LhsT, typename RhsT>
class kassert::internal::BinaryExpression< LhsT, RhsT >
A decomposed binary expression.
- Template Parameters
-
| LhsT | Decomposed type of the left hand side of the expression. |
| RhsT | Decomposed type of the right hand side of the expression. |