template <typename V, typename T, typename Distance, typename GetDistance>
class DistanceFromMatcherImpl
Defined at line 2885 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
Implements DistanceFrom(target, get_distance, distance_matcher) for the given
argument types:
* V is the type of the value to be matched.
* T is the type of the target value.
* Distance is the type of the distance between V and T.
* GetDistance is the type of the functor for computing the distance between
V and T.
Public Methods
void DistanceFromMatcherImpl<V, T, Distance, GetDistance> (T target, GetDistance get_distance, Matcher<const Distance &> distance_matcher)
Arguments:
* target: the target value.
* get_distance: the functor for computing the distance between the value
being matched and target.
* distance_matcher: the matcher for checking the distance.
Defined at line 2892 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
void DescribeTo (::std::ostream * os)
Describes what this matcher does.
Defined at line 2899 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
void DescribeNegationTo (::std::ostream * os)
Defined at line 2904 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
bool MatchAndExplain (V value, MatchResultListener * listener)
Defined at line 2909 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h