Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::ExprLhs< LhsT > Class Template Reference

#include <catch_decomposer.h>

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
 
template<typename RhsT >
auto operator&& (RhsT const &) -> BinaryExpr< LhsT, RhsT const & > const
 
template<typename RhsT >
auto operator|| (RhsT const &) -> BinaryExpr< LhsT, RhsT const & > const
 
auto makeUnaryExpr () const -> UnaryExpr< LhsT >
 
 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
 
template<typename RhsT >
auto operator&& (RhsT const &) -> BinaryExpr< LhsT, RhsT const & > const
 
template<typename RhsT >
auto operator|| (RhsT const &) -> BinaryExpr< LhsT, RhsT const & > const
 
auto makeUnaryExpr () const -> UnaryExpr< LhsT >
 

Detailed Description

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

Definition at line 1984 of file catch.hpp.

Constructor & Destructor Documentation

◆ ExprLhs() [1/2]

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

Definition at line 169 of file catch_decomposer.h.

169: m_lhs( lhs ) {}

◆ ExprLhs() [2/2]

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

Definition at line 1987 of file catch.hpp.

1987: m_lhs( lhs ) {}

Member Function Documentation

◆ makeUnaryExpr() [1/2]

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

Definition at line 218 of file catch_decomposer.h.

218 {
219 return UnaryExpr<LhsT>{ m_lhs };
220 }
Here is the caller graph for this function:

◆ makeUnaryExpr() [2/2]

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

Definition at line 2036 of file catch.hpp.

2036 {
2037 return UnaryExpr<LhsT>{ m_lhs };
2038 }

◆ operator!=() [1/4]

template<typename LhsT >
auto Catch::ExprLhs< LhsT >::operator!= ( bool rhs) -> BinaryExpr<LhsT, bool> const
inline

Definition at line 183 of file catch_decomposer.h.

183 {
184 return { m_lhs != rhs, m_lhs, "!=", rhs };
185 }

◆ operator!=() [2/4]

template<typename LhsT >
auto Catch::ExprLhs< LhsT >::operator!= ( bool rhs) -> BinaryExpr<LhsT, bool> const
inline

Definition at line 2001 of file catch.hpp.

2001 {
2002 return { m_lhs != rhs, m_lhs, "!=", rhs };
2003 }

◆ operator!=() [3/4]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator!= ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 180 of file catch_decomposer.h.

180 {
181 return { compareNotEqual( m_lhs, rhs ), m_lhs, "!=", rhs };
182 }
auto compareNotEqual(LhsT const &lhs, RhsT &&rhs) -> bool
Here is the call graph for this function:

◆ operator!=() [4/4]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator!= ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1998 of file catch.hpp.

1998 {
1999 return { compareNotEqual( m_lhs, rhs ), m_lhs, "!=", rhs };
2000 }
Here is the call graph for this function:

◆ operator&&() [1/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator&& ( RhsT const & ) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 205 of file catch_decomposer.h.

205 {
206 static_assert(always_false<RhsT>::value,
207 "operator&& is not supported inside assertions, "
208 "wrap the expression inside parentheses, or decompose it");
209 }

◆ operator&&() [2/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator&& ( RhsT const & ) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 2023 of file catch.hpp.

2023 {
2024 static_assert(always_false<RhsT>::value,
2025 "operator&& is not supported inside assertions, "
2026 "wrap the expression inside parentheses, or decompose it");
2027 }

◆ operator<() [1/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator< ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 192 of file catch_decomposer.h.

192 {
193 return { static_cast<bool>(m_lhs < rhs), m_lhs, "<", rhs };
194 }

◆ operator<() [2/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator< ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 2010 of file catch.hpp.

2010 {
2011 return { static_cast<bool>(m_lhs < rhs), m_lhs, "<", rhs };
2012 }

◆ operator<=() [1/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator<= ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 200 of file catch_decomposer.h.

200 {
201 return { static_cast<bool>(m_lhs <= rhs), m_lhs, "<=", rhs };
202 }

◆ operator<=() [2/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator<= ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 2018 of file catch.hpp.

2018 {
2019 return { static_cast<bool>(m_lhs <= rhs), m_lhs, "<=", rhs };
2020 }

◆ operator==() [1/4]

template<typename LhsT >
auto Catch::ExprLhs< LhsT >::operator== ( bool rhs) -> BinaryExpr<LhsT, bool> const
inline

Definition at line 175 of file catch_decomposer.h.

175 {
176 return { m_lhs == rhs, m_lhs, "==", rhs };
177 }

◆ operator==() [2/4]

template<typename LhsT >
auto Catch::ExprLhs< LhsT >::operator== ( bool rhs) -> BinaryExpr<LhsT, bool> const
inline

Definition at line 1993 of file catch.hpp.

1993 {
1994 return { m_lhs == rhs, m_lhs, "==", rhs };
1995 }

◆ operator==() [3/4]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator== ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 172 of file catch_decomposer.h.

172 {
173 return { compareEqual( m_lhs, rhs ), m_lhs, "==", rhs };
174 }
auto compareEqual(LhsT const &lhs, RhsT const &rhs) -> bool
Here is the call graph for this function:

◆ operator==() [4/4]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator== ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 1990 of file catch.hpp.

1990 {
1991 return { compareEqual( m_lhs, rhs ), m_lhs, "==", rhs };
1992 }
Here is the call graph for this function:

◆ operator>() [1/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator> ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 188 of file catch_decomposer.h.

188 {
189 return { static_cast<bool>(m_lhs > rhs), m_lhs, ">", rhs };
190 }

◆ operator>() [2/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator> ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 2006 of file catch.hpp.

2006 {
2007 return { static_cast<bool>(m_lhs > rhs), m_lhs, ">", rhs };
2008 }

◆ operator>=() [1/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator>= ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 196 of file catch_decomposer.h.

196 {
197 return { static_cast<bool>(m_lhs >= rhs), m_lhs, ">=", rhs };
198 }

◆ operator>=() [2/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator>= ( RhsT const & rhs) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 2014 of file catch.hpp.

2014 {
2015 return { static_cast<bool>(m_lhs >= rhs), m_lhs, ">=", rhs };
2016 }

◆ operator||() [1/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator|| ( RhsT const & ) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 212 of file catch_decomposer.h.

212 {
213 static_assert(always_false<RhsT>::value,
214 "operator|| is not supported inside assertions, "
215 "wrap the expression inside parentheses, or decompose it");
216 }

◆ operator||() [2/2]

template<typename LhsT >
template<typename RhsT >
auto Catch::ExprLhs< LhsT >::operator|| ( RhsT const & ) -> BinaryExpr<LhsT, RhsT const&> const
inline

Definition at line 2030 of file catch.hpp.

2030 {
2031 static_assert(always_false<RhsT>::value,
2032 "operator|| is not supported inside assertions, "
2033 "wrap the expression inside parentheses, or decompose it");
2034 }

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