Struct ITransientExpression

Synopsis

#include <include/internal/catch_decomposer.h>

struct ITransientExpression

Description

No description yet.

Inheritance

Decsendents: MatchExpr, BinaryExpr, UnaryExpr

Methods

ITransientExpression
~ITransientExpression
getResult
isBinaryExpression
streamReconstructedExpression

Source

Lines 28-45 in include/internal/catch_decomposer.h.

struct ITransientExpression {
    auto isBinaryExpression() const -> bool { return m_isBinaryExpression; }
    auto getResult() const -> bool { return m_result; }
    virtual void streamReconstructedExpression( std::ostream &os ) const = 0;
    ITransientExpression( bool isBinaryExpression, bool result )
    :   m_isBinaryExpression( isBinaryExpression ),
        m_result( result )
    {}
    // We don't actually need a virtual destructor, but many static analysers
    // complain if it's not here :-(
    virtual ~ITransientExpression();
    bool m_isBinaryExpression;
    bool m_result;
};





Add Discussion as Guest

Log in