Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::FloatingEqMatcher< FloatType > Class Template Reference

#include <gmock-matchers.h>

Classes

class  Impl
 

Public Member Functions

 FloatingEqMatcher (FloatType expected, bool nan_eq_nan)
 
 FloatingEqMatcher (FloatType expected, bool nan_eq_nan, FloatType max_abs_error)
 
 operator Matcher< FloatType > () const
 
 operator Matcher< const FloatType & > () const
 
 operator Matcher< FloatType & > () const
 

Detailed Description

template<typename FloatType>
class testing::internal::FloatingEqMatcher< FloatType >

Definition at line 2084 of file gmock-matchers.h.

Constructor & Destructor Documentation

◆ FloatingEqMatcher() [1/2]

template<typename FloatType >
testing::internal::FloatingEqMatcher< FloatType >::FloatingEqMatcher ( FloatType expected,
bool nan_eq_nan )
inline

Definition at line 2092 of file gmock-matchers.h.

2092 :
2093 expected_(expected), nan_eq_nan_(nan_eq_nan), max_abs_error_(-1) {
2094 }

◆ FloatingEqMatcher() [2/2]

template<typename FloatType >
testing::internal::FloatingEqMatcher< FloatType >::FloatingEqMatcher ( FloatType expected,
bool nan_eq_nan,
FloatType max_abs_error )
inline

Definition at line 2099 of file gmock-matchers.h.

2101 : expected_(expected),
2102 nan_eq_nan_(nan_eq_nan),
2103 max_abs_error_(max_abs_error) {
2104 GTEST_CHECK_(max_abs_error >= 0)
2105 << ", where max_abs_error is" << max_abs_error;
2106 }
#define GTEST_CHECK_(condition)

Member Function Documentation

◆ operator Matcher< const FloatType & >()

template<typename FloatType >
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< const FloatType & > ( ) const
inline

Definition at line 2217 of file gmock-matchers.h.

2217 {
2218 return MakeMatcher(
2219 new Impl<const FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2220 }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
Here is the call graph for this function:

◆ operator Matcher< FloatType & >()

template<typename FloatType >
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType & > ( ) const
inline

Definition at line 2222 of file gmock-matchers.h.

2222 {
2223 return MakeMatcher(
2224 new Impl<FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2225 }
Here is the call graph for this function:

◆ operator Matcher< FloatType >()

template<typename FloatType >
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType > ( ) const
inline

Definition at line 2212 of file gmock-matchers.h.

2212 {
2213 return MakeMatcher(
2214 new Impl<FloatType>(expected_, nan_eq_nan_, max_abs_error_));
2215 }
Here is the call graph for this function:

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