Electroneum
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 1888 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 1896 of file gmock-matchers.h.

1896 :
1897 expected_(expected), nan_eq_nan_(nan_eq_nan), max_abs_error_(-1) {
1898 }

◆ 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 1903 of file gmock-matchers.h.

1905 : expected_(expected),
1906 nan_eq_nan_(nan_eq_nan),
1907 max_abs_error_(max_abs_error) {
1909 << ", where max_abs_error is" << max_abs_error;
1910 }
#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 2021 of file gmock-matchers.h.

2021 {
2022 return MakeMatcher(
2023 new Impl<const FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2024 }
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 2026 of file gmock-matchers.h.

2026 {
2027 return MakeMatcher(
2028 new Impl<FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2029 }
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 2016 of file gmock-matchers.h.

2016 {
2017 return MakeMatcher(
2018 new Impl<FloatType>(expected_, nan_eq_nan_, max_abs_error_));
2019 }
Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h