proxygen
testing::internal::WhenDynamicCastToMatcher< To > Class Template Reference

#include <gmock-matchers.h>

Inheritance diagram for testing::internal::WhenDynamicCastToMatcher< To >:
testing::internal::WhenDynamicCastToMatcherBase< To > testing::internal::WhenDynamicCastToMatcherBase< To > testing::internal::WhenDynamicCastToMatcherBase< To >

Public Member Functions

 WhenDynamicCastToMatcher (const Matcher< To > &matcher)
 
template<typename From >
bool MatchAndExplain (From from, MatchResultListener *listener) const
 
 WhenDynamicCastToMatcher (const Matcher< To > &matcher)
 
template<typename From >
bool MatchAndExplain (From from, MatchResultListener *listener) const
 
 WhenDynamicCastToMatcher (const Matcher< To > &matcher)
 
template<typename From >
bool MatchAndExplain (From from, MatchResultListener *listener) const
 
- Public Member Functions inherited from testing::internal::WhenDynamicCastToMatcherBase< To >
 WhenDynamicCastToMatcherBase (const Matcher< To > &matcher)
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 
 WhenDynamicCastToMatcherBase (const Matcher< To > &matcher)
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 
 WhenDynamicCastToMatcherBase (const Matcher< To > &matcher)
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 

Additional Inherited Members

- Static Protected Member Functions inherited from testing::internal::WhenDynamicCastToMatcherBase< To >
static string GetToName ()
 
static string GetToName ()
 
static string GetToName ()
 
- Protected Attributes inherited from testing::internal::WhenDynamicCastToMatcherBase< To >
const Matcher< Tomatcher_
 

Detailed Description

template<typename To>
class testing::internal::WhenDynamicCastToMatcher< To >

Definition at line 2145 of file gmock-matchers.h.

Constructor & Destructor Documentation

template<typename To >
testing::internal::WhenDynamicCastToMatcher< To >::WhenDynamicCastToMatcher ( const Matcher< To > &  matcher)
inlineexplicit

Definition at line 2147 of file gmock-matchers.h.

2148  : WhenDynamicCastToMatcherBase<To>(matcher) {}
template<typename To >
testing::internal::WhenDynamicCastToMatcher< To >::WhenDynamicCastToMatcher ( const Matcher< To > &  matcher)
inlineexplicit

Definition at line 2147 of file gmock-matchers.h.

2148  : WhenDynamicCastToMatcherBase<To>(matcher) {}
template<typename To >
testing::internal::WhenDynamicCastToMatcher< To >::WhenDynamicCastToMatcher ( const Matcher< To > &  matcher)
inlineexplicit

Definition at line 2147 of file gmock-matchers.h.

2148  : WhenDynamicCastToMatcherBase<To>(matcher) {}

Member Function Documentation

template<typename To >
template<typename From >
bool testing::internal::WhenDynamicCastToMatcher< To >::MatchAndExplain ( From  from,
MatchResultListener listener 
) const
inline

Definition at line 2151 of file gmock-matchers.h.

References folly::pushmi::operators::from, testing::internal::MatchPrintAndExplain(), and folly::to().

2151  {
2152  // TODO(sbenza): Add more detail on failures. ie did the dyn_cast fail?
2153  To to = dynamic_cast<To>(from);
2154  return MatchPrintAndExplain(to, this->matcher_, listener);
2155  }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
std::enable_if< detail::is_chrono_conversion< Tgt, Src >::value, Tgt >::type to(const Src &value)
Definition: Conv.h:677
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::operators::from_fn from
template<typename To >
template<typename From >
bool testing::internal::WhenDynamicCastToMatcher< To >::MatchAndExplain ( From  from,
MatchResultListener listener 
) const
inline

Definition at line 2151 of file gmock-matchers.h.

References folly::pushmi::operators::from, testing::internal::MatchPrintAndExplain(), and folly::to().

2151  {
2152  // TODO(sbenza): Add more detail on failures. ie did the dyn_cast fail?
2153  To to = dynamic_cast<To>(from);
2154  return MatchPrintAndExplain(to, this->matcher_, listener);
2155  }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
std::enable_if< detail::is_chrono_conversion< Tgt, Src >::value, Tgt >::type to(const Src &value)
Definition: Conv.h:677
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::operators::from_fn from
template<typename To >
template<typename From >
bool testing::internal::WhenDynamicCastToMatcher< To >::MatchAndExplain ( From  from,
MatchResultListener listener 
) const
inline

Definition at line 2151 of file gmock-matchers.h.

References folly::pushmi::operators::from, testing::internal::MatchPrintAndExplain(), and folly::to().

2151  {
2152  // TODO(sbenza): Add more detail on failures. ie did the dyn_cast fail?
2153  To to = dynamic_cast<To>(from);
2154  return MatchPrintAndExplain(to, this->matcher_, listener);
2155  }
bool MatchPrintAndExplain(Value &value, const Matcher< T > &matcher, MatchResultListener *listener)
std::enable_if< detail::is_chrono_conversion< Tgt, Src >::value, Tgt >::type to(const Src &value)
Definition: Conv.h:677
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::operators::from_fn from

The documentation for this class was generated from the following file: