KASSERT  0.0.1
Karlsruhe Assertion Library
kassert::internal::UnaryExpression< LhsT > Class Template Reference

Decomposed unary expression. More...

#include <expression_decomposition.hpp>

Inheritance diagram for kassert::internal::UnaryExpression< LhsT >:
kassert::internal::Expression

Public Member Functions

 UnaryExpression (LhsT const &lhs)
 Constructs this unary expression from an expression. More...
 
bool result () const final
 Evaluates this expression. More...
 
void stringify (OStreamLogger &out) const final
 Writes this expression with stringified operands to the given assertion logger. More...
 
- Public Member Functions inherited from kassert::internal::Expression
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...
 

Detailed Description

template<typename LhsT>
class kassert::internal::UnaryExpression< LhsT >

Decomposed unary expression.

Template Parameters
LhstDecomposed expression type.

Constructor & Destructor Documentation

◆ UnaryExpression()

template<typename LhsT >
kassert::internal::UnaryExpression< LhsT >::UnaryExpression ( LhsT const &  lhs)
inlineexplicit

Constructs this unary expression from an expression.

Parameters
lhsThe expression.

Member Function Documentation

◆ result()

template<typename LhsT >
bool kassert::internal::UnaryExpression< LhsT >::result ( ) const
inlinefinalvirtual

Evaluates this expression.

Returns
The boolean result of this expression.

Implements kassert::internal::Expression.

◆ stringify()

template<typename LhsT >
void kassert::internal::UnaryExpression< LhsT >::stringify ( OStreamLogger out) const
inlinefinalvirtual

Writes this expression with stringified operands to the given assertion logger.

Parameters
outThe assertion logger.

Implements kassert::internal::Expression.


The documentation for this class was generated from the following file: