proxygen
testing::internal::UniversalPrinter< T & > Class Template Reference

#include <gtest-printers.h>

Static Public Member Functions

static void Print (const T &value,::std::ostream *os)
 
static void Print (const T &value,::std::ostream *os)
 
static void Print (const T &value,::std::ostream *os)
 

Detailed Description

template<typename T>
class testing::internal::UniversalPrinter< T & >

Definition at line 758 of file gtest-printers.h.

Member Function Documentation

template<typename T >
static void testing::internal::UniversalPrinter< T & >::Print ( const T value,
::std::ostream *  os 
)
inlinestatic

Definition at line 764 of file gtest-printers.h.

References GTEST_DISABLE_MSC_WARNINGS_POP_, testing::internal::UniversalPrint(), and value.

764  {
765  // Prints the address of the value. We use reinterpret_cast here
766  // as static_cast doesn't compile when T is a function type.
767  *os << "@" << reinterpret_cast<const void*>(&value) << " ";
768 
769  // Then prints the value itself.
770  UniversalPrint(value, os);
771  }
void UniversalPrint(const T &value,::std::ostream *os)
static const char *const value
Definition: Conv.cpp:50
template<typename T >
static void testing::internal::UniversalPrinter< T & >::Print ( const T value,
::std::ostream *  os 
)
inlinestatic

Definition at line 764 of file gtest-printers.h.

References GTEST_DISABLE_MSC_WARNINGS_POP_, testing::internal::UniversalPrint(), and value.

764  {
765  // Prints the address of the value. We use reinterpret_cast here
766  // as static_cast doesn't compile when T is a function type.
767  *os << "@" << reinterpret_cast<const void*>(&value) << " ";
768 
769  // Then prints the value itself.
770  UniversalPrint(value, os);
771  }
void UniversalPrint(const T &value,::std::ostream *os)
static const char *const value
Definition: Conv.cpp:50
template<typename T >
static void testing::internal::UniversalPrinter< T & >::Print ( const T value,
::std::ostream *  os 
)
inlinestatic

Definition at line 764 of file gtest-printers.h.

References GTEST_DISABLE_MSC_WARNINGS_POP_, testing::internal::UniversalPrint(), and value.

764  {
765  // Prints the address of the value. We use reinterpret_cast here
766  // as static_cast doesn't compile when T is a function type.
767  *os << "@" << reinterpret_cast<const void*>(&value) << " ";
768 
769  // Then prints the value itself.
770  UniversalPrint(value, os);
771  }
void UniversalPrint(const T &value,::std::ostream *os)
static const char *const value
Definition: Conv.cpp:50

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