template <typename T, typename GetDistance, typename DistanceMatcher>
class DistanceFromMatcher
Defined at line 3077 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
Implements polymorphic DistanceFrom(target, get_distance, distance_matcher)
matcher. Template arguments:
* T is the type of the target value.
* GetDistance is the type of the functor for computing the distance between
the value being matched and the target.
* DistanceMatcher is the type of the matcher for checking the distance.
Public Methods
void DistanceFromMatcher<T, GetDistance, DistanceMatcher> (T target, GetDistance get_distance, DistanceMatcher 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 3084 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
void DistanceFromMatcher<T, GetDistance, DistanceMatcher> (const DistanceFromMatcher<T, GetDistance, DistanceMatcher> & other)
Defined at line 3090 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h
template <typename V>
Matcher<V> operator testing::Matcher<type-parameter-1-0> ()
Implicitly converts to a monomorphic matcher of the given type.
Defined at line 3094 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h