proxygen
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
 
 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
 
 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
 

Private Member Functions

 GTEST_DISALLOW_ASSIGN_ (FloatingEqMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (FloatingEqMatcher)
 
 GTEST_DISALLOW_ASSIGN_ (FloatingEqMatcher)
 

Private Attributes

const FloatType expected_
 
const bool nan_eq_nan_
 
const FloatType max_abs_error_
 

Detailed Description

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

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

Constructor & Destructor Documentation

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  }
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.

References GTEST_CHECK_.

1905  : expected_(expected),
1906  nan_eq_nan_(nan_eq_nan),
1907  max_abs_error_(max_abs_error) {
1908  GTEST_CHECK_(max_abs_error >= 0)
1909  << ", where max_abs_error is" << max_abs_error;
1910  }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295
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  }
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.

References GTEST_CHECK_.

1905  : expected_(expected),
1906  nan_eq_nan_(nan_eq_nan),
1907  max_abs_error_(max_abs_error) {
1908  GTEST_CHECK_(max_abs_error >= 0)
1909  << ", where max_abs_error is" << max_abs_error;
1910  }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295
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  }
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.

References GTEST_CHECK_.

1905  : expected_(expected),
1906  nan_eq_nan_(nan_eq_nan),
1907  max_abs_error_(max_abs_error) {
1908  GTEST_CHECK_(max_abs_error >= 0)
1909  << ", where max_abs_error is" << max_abs_error;
1910  }
#define GTEST_CHECK_(condition)
Definition: gtest-port.h:1295

Member Function Documentation

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

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

References testing::MakeMatcher().

2021  {
2022  return MakeMatcher(
2023  new Impl<const FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2024  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< const FloatType & > ( ) const
inline

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

References testing::MakeMatcher().

2021  {
2022  return MakeMatcher(
2023  new Impl<const FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2024  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< const FloatType & > ( ) const
inline

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

References testing::MakeMatcher().

2021  {
2022  return MakeMatcher(
2023  new Impl<const FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2024  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType & > ( ) const
inline

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

References GTEST_DISALLOW_ASSIGN_, and testing::MakeMatcher().

2026  {
2027  return MakeMatcher(
2028  new Impl<FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2029  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType & > ( ) const
inline

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

References testing::MakeMatcher().

2026  {
2027  return MakeMatcher(
2028  new Impl<FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2029  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType & > ( ) const
inline

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

References GTEST_DISALLOW_ASSIGN_, and testing::MakeMatcher().

2026  {
2027  return MakeMatcher(
2028  new Impl<FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2029  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType > ( ) const
inline

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

References testing::MakeMatcher().

2016  {
2017  return MakeMatcher(
2018  new Impl<FloatType>(expected_, nan_eq_nan_, max_abs_error_));
2019  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType > ( ) const
inline

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

References testing::MakeMatcher().

2016  {
2017  return MakeMatcher(
2018  new Impl<FloatType>(expected_, nan_eq_nan_, max_abs_error_));
2019  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)
template<typename FloatType>
testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType > ( ) const
inline

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

References testing::MakeMatcher().

2016  {
2017  return MakeMatcher(
2018  new Impl<FloatType>(expected_, nan_eq_nan_, max_abs_error_));
2019  }
Matcher< T > MakeMatcher(const MatcherInterface< T > *impl)

Member Data Documentation

template<typename FloatType>
const FloatType testing::internal::FloatingEqMatcher< FloatType >::expected_
private

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

template<typename FloatType>
const FloatType testing::internal::FloatingEqMatcher< FloatType >::max_abs_error_
private

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

template<typename FloatType>
const bool testing::internal::FloatingEqMatcher< FloatType >::nan_eq_nan_
private

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


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