kassert  0.2.2
Assertion library for KaMPIng
Loading...
Searching...
No Matches
kassert::internal::UnaryExpression< LhsT > Class Template Reference

Decomposed unary expression. More...

#include <expression_decomposition.hpp>

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

Public Member Functions

 UnaryExpression (LhsT const &lhs)
 Constructs this unary expression from an expression.
 
bool result () const final
 Evaluates this expression.
 
void stringify (OStreamLogger &out) const final
 Writes this expression with stringified operands to the given assertion logger.
 
- Public Member Functions inherited from kassert::internal::Expression
virtual ~Expression ()=default
 Virtual destructor since we use virtual functions.
 

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: