Lines Matching defs:raw_ostream

1 //===--- raw_ostream.h - Raw output stream ----------------------*- C++ -*-===//
10 // This file defines the raw_ostream class.
25 /// raw_ostream - This class implements an extremely fast bulk output stream
29 class raw_ostream {
31 // Do not implement. raw_ostream is noncopyable.
32 void operator=(const raw_ostream &);
33 raw_ostream(const raw_ostream &);
46 /// If buffered, then the raw_ostream owns the buffer if (BufferMode ==
75 explicit raw_ostream(bool unbuffered=false)
81 virtual ~raw_ostream();
133 raw_ostream &operator<<(char C) {
140 raw_ostream &operator<<(unsigned char C) {
147 raw_ostream &operator<<(signed char C) {
154 raw_ostream &operator<<(StringRef Str) {
167 raw_ostream &operator<<(const char *Str) {
174 raw_ostream &operator<<(const std::string &Str) {
179 raw_ostream &operator<<(unsigned long N);
180 raw_ostream &operator<<(long N);
181 raw_ostream &operator<<(unsigned long long N);
182 raw_ostream &operator<<(long long N);
183 raw_ostream &operator<<(const void *P);
184 raw_ostream &operator<<(unsigned int N) {
188 raw_ostream &operator<<(int N) {
192 raw_ostream &operator<<(double N);
195 raw_ostream &write_hex(unsigned long long N);
199 raw_ostream &write_escaped(StringRef Str, bool UseHexEscapes = false);
201 raw_ostream &write(unsigned char C);
202 raw_ostream &write(const char *Ptr, size_t Size);
205 raw_ostream &operator<<(const format_object_base &Fmt);
208 raw_ostream &indent(unsigned NumSpaces);
218 virtual raw_ostream &changeColor(enum Colors, bool = false, bool = false) {
223 virtual raw_ostream &resetColor() { return *this; }
257 /// SetBuffer - Use the provided buffer as the raw_ostream buffer. This is
294 /// raw_fd_ostream - A raw_ostream that writes to a file descriptor.
296 class raw_fd_ostream : public raw_ostream {
310 /// write_impl - See raw_ostream::write_impl.
371 /// Note that because raw_ostream's are typically buffered, this flag is only
378 virtual raw_ostream &changeColor(enum Colors colors, bool bold=false,
380 virtual raw_ostream &resetColor();
393 /// flag is set at the time when this raw_ostream's destructor is called,
406 /// outs() - This returns a reference to a raw_ostream for standard output.
408 raw_ostream &outs();
410 /// errs() - This returns a reference to a raw_ostream for standard error.
412 raw_ostream &errs();
414 /// nulls() - This returns a reference to a raw_ostream which simply discards
416 raw_ostream &nulls();
422 /// raw_string_ostream - A raw_ostream that writes to an std::string. This is a
424 class raw_string_ostream : public raw_ostream {
427 /// write_impl - See raw_ostream::write_impl.
445 /// raw_svector_ostream - A raw_ostream that writes to an SmallVector or
448 class raw_svector_ostream : public raw_ostream {
451 /// write_impl - See raw_ostream::write_impl.
475 /// raw_null_ostream - A raw_ostream that discards all output.
476 class raw_null_ostream : public raw_ostream {
477 /// write_impl - See raw_ostream::write_impl.