Home | History | Annotate | Download | only in gmock

Lines Matching defs:FloatType

6466 // FloatType being either float or double.
6467 template <typename FloatType>
6476 FloatingEqMatcher(FloatType rhs, bool nan_eq_nan) :
6483 FloatingEqMatcher(FloatType rhs, bool nan_eq_nan, FloatType max_abs_error) :
6493 Impl(FloatType rhs, bool nan_eq_nan, FloatType max_abs_error) :
6498 const FloatingPoint<FloatType> lhs(value), rhs(rhs_);
6524 ::std::numeric_limits<FloatType>::digits10 + 2);
6525 if (FloatingPoint<FloatType>(rhs_).is_nan()) {
6543 ::std::numeric_limits<FloatType>::digits10 + 2);
6544 if (FloatingPoint<FloatType>(rhs_).is_nan()) {
6565 const FloatType rhs_;
6568 const FloatType max_abs_error_;
6579 operator Matcher<FloatType>() const {
6580 return MakeMatcher(new Impl<FloatType>(rhs_, nan_eq_nan_, max_abs_error_));
6583 operator Matcher<const FloatType&>() const {
6585 new Impl<const FloatType&>(rhs_, nan_eq_nan_, max_abs_error_));
6588 operator Matcher<FloatType&>() const {
6589 return MakeMatcher(new Impl<FloatType&>(rhs_, nan_eq_nan_, max_abs_error_));
6593 const FloatType rhs_;
6596 const FloatType max_abs_error_;