Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Catch::BinaryExpr< LhsT, RhsT > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::BinaryExpr< LhsT, RhsT >:
Collaboration diagram for Catch::BinaryExpr< LhsT, RhsT >:

Public Member Functions

 BinaryExpr (bool comparisonResult, LhsT lhs, StringRef op, RhsT rhs)
 
- Public Member Functions inherited from Catch::ITransientExpression
auto isBinaryExpression () const -> bool
 
auto getResult () const -> bool
 
 ITransientExpression (bool isBinaryExpression, bool result)
 
virtual ~ITransientExpression ()
 

Private Member Functions

void streamReconstructedExpression (std::ostream &os) const override
 

Private Attributes

LhsT m_lhs
 
StringRef m_op
 
RhsT m_rhs
 

Additional Inherited Members

- Public Attributes inherited from Catch::ITransientExpression
bool m_isBinaryExpression
 
bool m_result
 

Detailed Description

template<typename LhsT, typename RhsT>
class Catch::BinaryExpr< LhsT, RhsT >

Definition at line 1487 of file catch.hpp.

Constructor & Destructor Documentation

template<typename LhsT , typename RhsT >
Catch::BinaryExpr< LhsT, RhsT >::BinaryExpr ( bool  comparisonResult,
LhsT  lhs,
StringRef  op,
RhsT  rhs 
)
inline

Definition at line 1498 of file catch.hpp.

1499  : ITransientExpression{ true, comparisonResult },
1500  m_lhs( lhs ),
1501  m_op( op ),
1502  m_rhs( rhs )
1503  {}
ITransientExpression(bool isBinaryExpression, bool result)
Definition: catch.hpp:1470
StringRef m_op
Definition: catch.hpp:1489

Member Function Documentation

template<typename LhsT , typename RhsT >
void Catch::BinaryExpr< LhsT, RhsT >::streamReconstructedExpression ( std::ostream &  os) const
inlineoverrideprivatevirtual

Implements Catch::ITransientExpression.

Definition at line 1492 of file catch.hpp.

References Catch::formatReconstructedExpression(), and Catch::Detail::stringify().

1492  {
1495  }
void formatReconstructedExpression(std::ostream &os, std::string const &lhs, StringRef op, std::string const &rhs)
std::string stringify(const T &e)
Definition: catch.hpp:955
StringRef m_op
Definition: catch.hpp:1489

Member Data Documentation

template<typename LhsT , typename RhsT >
LhsT Catch::BinaryExpr< LhsT, RhsT >::m_lhs
private

Definition at line 1488 of file catch.hpp.

template<typename LhsT , typename RhsT >
StringRef Catch::BinaryExpr< LhsT, RhsT >::m_op
private

Definition at line 1489 of file catch.hpp.

template<typename LhsT , typename RhsT >
RhsT Catch::BinaryExpr< LhsT, RhsT >::m_rhs
private

Definition at line 1490 of file catch.hpp.


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