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

#include <catch.hpp>

Public Member Functions

 ExprLhs (LhsT lhs)
 
template<typename RhsT >
auto operator== (RhsT const &rhs) -> BinaryExpr< LhsT, RhsT const & > const
 
auto operator== (bool rhs) -> BinaryExpr< LhsT, bool > const
 
template<typename RhsT >
auto operator!= (RhsT const &rhs) -> BinaryExpr< LhsT, RhsT const & > const
 
auto operator!= (bool rhs) -> BinaryExpr< LhsT, bool > const
 
template<typename RhsT >
auto operator> (RhsT const &rhs) -> BinaryExpr< LhsT, RhsT const & > const
 
template<typename RhsT >
auto operator< (RhsT const &rhs) -> BinaryExpr< LhsT, RhsT const & > const
 
template<typename RhsT >
auto operator>= (RhsT const &rhs) -> BinaryExpr< LhsT, RhsT const & > const
 
template<typename RhsT >
auto operator<= (RhsT const &rhs) -> BinaryExpr< LhsT, RhsT const & > const
 
auto makeUnaryExpr () const -> UnaryExpr< LhsT >
 

Private Attributes

LhsT m_lhs
 

Detailed Description

template<typename LhsT>
class Catch::ExprLhs< LhsT >

Definition at line 1545 of file catch.hpp.

Constructor & Destructor Documentation

template<typename LhsT>
Catch::ExprLhs< LhsT >::ExprLhs ( LhsT  lhs)
inlineexplicit

Definition at line 1548 of file catch.hpp.

1548 : m_lhs( lhs ) {}

Member Function Documentation

template<typename LhsT>
auto Catch::ExprLhs< LhsT >::makeUnaryExpr ( ) const -> UnaryExpr<LhsT>
inline

Definition at line 1583 of file catch.hpp.

References Catch::handleExpression().

Referenced by Catch::AssertionHandler::handleExpr(), and Catch::handleExpression().

1583  {
1584  return UnaryExpr<LhsT>{ m_lhs };
1585  }
template<typename LhsT>
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator!= ( RhsT const &  rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1559 of file catch.hpp.

References Catch::compareNotEqual().

1559  {
1560  return { compareNotEqual( m_lhs, rhs ), m_lhs, "!=", rhs };
1561  }
auto compareNotEqual(LhsT const &lhs, RhsT &&rhs) -> bool
Definition: catch.hpp:1534
template<typename LhsT>
auto Catch::ExprLhs< LhsT >::operator!= ( bool  rhs) -> BinaryExpr<LhsT, bool> const
inline

Definition at line 1562 of file catch.hpp.

1562  {
1563  return { m_lhs != rhs, m_lhs, "!=", rhs };
1564  }
template<typename LhsT>
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator< ( RhsT const &  rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1571 of file catch.hpp.

1571  {
1572  return { static_cast<bool>(m_lhs < rhs), m_lhs, "<", rhs };
1573  }
template<typename LhsT>
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator<= ( RhsT const &  rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1579 of file catch.hpp.

1579  {
1580  return { static_cast<bool>(m_lhs <= rhs), m_lhs, "<=", rhs };
1581  }
template<typename LhsT>
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator== ( RhsT const &  rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1551 of file catch.hpp.

References Catch::compareEqual().

1551  {
1552  return { compareEqual( m_lhs, rhs ), m_lhs, "==", rhs };
1553  }
auto compareEqual(LhsT const &lhs, RhsT const &rhs) -> bool
Definition: catch.hpp:1523
template<typename LhsT>
auto Catch::ExprLhs< LhsT >::operator== ( bool  rhs) -> BinaryExpr<LhsT, bool> const
inline

Definition at line 1554 of file catch.hpp.

1554  {
1555  return { m_lhs == rhs, m_lhs, "==", rhs };
1556  }
template<typename LhsT>
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator> ( RhsT const &  rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1567 of file catch.hpp.

1567  {
1568  return { static_cast<bool>(m_lhs > rhs), m_lhs, ">", rhs };
1569  }
template<typename LhsT>
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator>= ( RhsT const &  rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1575 of file catch.hpp.

1575  {
1576  return { static_cast<bool>(m_lhs >= rhs), m_lhs, ">=", rhs };
1577  }

Member Data Documentation

template<typename LhsT>
LhsT Catch::ExprLhs< LhsT >::m_lhs
private

Definition at line 1546 of file catch.hpp.


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