template <class Impl>

class PolymorphicMatcher

Defined at line 617 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

The PolymorphicMatcher class template makes it easy to implement a

polymorphic matcher (i.e. a matcher that can match values of more

than one type, e.g. Eq(n) and NotNull()).

To define a polymorphic matcher, a user should provide an Impl

class that has a DescribeTo() method and a DescribeNegationTo()

method, and define a member function (or member function template)

bool MatchAndExplain(const Value

&

value,

MatchResultListener* listener) const;

See the definition of NotNull() for a complete example.

Public Methods

void PolymorphicMatcher<Impl> (const Impl & an_impl)

Defined at line 619 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Impl & mutable_impl ()

Returns a mutable reference to the underlying matcher

implementation object.

Defined at line 623 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

const Impl & impl ()

Returns an immutable reference to the underlying matcher

implementation object.

Defined at line 627 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

template <typename T>
Matcher<T> operator testing::Matcher<type-parameter-1-0> ()

Defined at line 630 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h

Records