Lines Matching defs:Message

34 // This header file defines the Message class.
54 // The Message class works like an ostream repeater.
58 // 1. You stream a bunch of values to a Message object.
60 // 2. Then you stream the Message object to an ostream.
61 // This causes the text in the Message to be streamed
66 // testing::Message foo;
72 // Message is not intended to be inherited from. In particular, its
77 // latter (it causes an access violation if you do). The Message
80 class Message {
87 // Constructs an empty Message.
92 Message() : ss_(new internal::StrStream) {}
95 Message(const Message& msg) : ss_(new internal::StrStream) { // NOLINT
99 // Constructs a Message from a C-string.
100 explicit Message(const char* str) : ss_(new internal::StrStream) {
104 ~Message() { delete ss_; }
108 inline Message& operator <<(const T& value) {
115 inline Message& operator <<(const T& val) {
123 // stream a pointer to a Message, this definition will be used as it
134 inline Message& operator <<(T* const& pointer) { // NOLINT
148 // endl or other basic IO manipulators to Message will confuse the
150 Message& operator <<(BasicNarrowIoManip val) {
156 Message& operator <<(bool b) {
160 // These two overloads allow streaming a wide C string to a Message
162 Message& operator <<(const wchar_t* wide_c_str) {
165 Message& operator <<(wchar_t* wide_c_str) {
171 // encoding, and streams the result to this Message object.
172 Message& operator <<(const ::std::wstring& wstr);
177 // encoding, and streams the result to this Message object.
178 Message& operator <<(const ::wstring& wstr);
214 void operator=(const Message&);
217 // Streams a Message to an ostream.
218 inline std::ostream& operator <<(std::ostream& os, const Message& sb) {