Lines Matching defs:PrintTo

40 // defining either operator<<() or PrintTo() in the namespace that
45 // 1. foo::PrintTo(const T&, ostream*)
123 // nor PrintTo().
133 // operator<< nor PrintTo() is defined for T, where kTypeKind is the
165 // Since T has no << operator or PrintTo() but can be implicitly
183 // type T and T has neither << operator nor PrintTo().
220 // user doesn't define PrintTo() for it.
368 // a PrintTo() for it.
386 // We cannot call PrintTo(*it, os) here as PrintTo() doesn't
398 // pointer, when the user doesn't define PrintTo() for it. (A member
434 // doesn't define PrintTo() for it.
444 // UniversalPrinter<T>::Print() does when PrintTo() is not specialized
448 // an overload of PrintTo() in the namespace where Foo is defined. We
454 void PrintTo(const T& value, ::std::ostream* os) {
465 // override Google Mock's format by defining a PrintTo() or
475 // PrintTo(const T& x, ...);
476 // PrintTo(T* x, ...);
480 // The following list of PrintTo() overloads tells
485 GTEST_API_ void PrintTo(unsigned char c, ::std::ostream* os);
486 GTEST_API_ void PrintTo(signed char c, ::std::ostream* os);
487 inline void PrintTo(char c, ::std::ostream* os) {
491 PrintTo(static_cast<unsigned char>(c), os);
495 inline void PrintTo(bool x, ::std::ostream* os) {
506 GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);
509 GTEST_API_ void PrintTo(const char* s, ::std::ostream* os);
510 inline void PrintTo(char* s, ::std::ostream* os) {
511 PrintTo(ImplicitCast_<const char*>(s), os);
516 inline void PrintTo(const signed char* s, ::std::ostream* os) {
517 PrintTo(ImplicitCast_<const void*>(s), os);
519 inline void PrintTo(signed char* s, ::std::ostream* os) {
520 PrintTo(ImplicitCast_<const void*>(s), os);
522 inline void PrintTo(const unsigned char* s, ::std::ostream* os) {
523 PrintTo(ImplicitCast_<const void*>(s), os);
525 inline void PrintTo(unsigned char* s, ::std::ostream* os) {
526 PrintTo(ImplicitCast_<const void*>(s), os);
536 GTEST_API_ void PrintTo(const wchar_t* s, ::std::ostream* os);
537 inline void PrintTo(wchar_t* s, ::std::ostream* os) {
538 PrintTo(ImplicitCast_<const wchar_t*>(s), os);
559 inline void PrintTo(const ::string& s, ::std::ostream* os) {
565 inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
572 inline void PrintTo(const ::wstring& s, ::std::ostream* os) {
579 inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) {
595 // Overloaded PrintTo() for tuples of various arities. We support
600 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
605 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
610 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
615 void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
620 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
625 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t,
632 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t,
639 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7>& t,
646 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8>& t,
653 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t,
660 void PrintTo(
669 void PrintTo(const ::std::tuple<Types...>& t, ::std::ostream* os) {
676 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
687 // pick the right overload of PrintTo() for T.
695 // Note: we deliberately don't call this PrintTo(), as that name
696 // conflicts with ::testing::internal::PrintTo in the body of the
699 // By default, ::testing::internal::PrintTo() is used for printing
703 // PrintTo() function defined in its namespace, that function will
707 PrintTo(value, os);
911 // This helper template allows PrintTo() for tuples and