Lines Matching refs:polymorphic
3425 matcher to be polymorphic. For example, `IsDivisibleBy7()` can be used to match
3597 may want your matcher to be polymorphic as `Eq(value)` is), you can define a
3665 Expanding what we learned above to *polymorphic* matchers is now just as simple
3674 // To implement a polymorphic matcher, we just need to make MatchAndExplain a
3741 Fortunately, most of the time you can define a polymorphic matcher easily with
3752 // To implement a polymorphic matcher, first define a COPYABLE class
3773 // To construct a polymorphic matcher, pass an instance of the class
3785 **Note:** Your polymorphic matcher class does **not** need to inherit from
3915 as in the examples above. But fancier polymorphic actions that need to know the
4243 *polymorphic*. The `MakePolymorphicAction()` function template makes it easy to
4277 class into the polymorphic action we need. It will be convenient to have a
4289 Now, you can use this polymorphic action the same way you use the built-in ones: