Lines Matching defs:raw_ostream

1 //===--- raw_ostream.h - Raw output stream ----------------------*- C++ -*-===//
10 // This file defines the raw_ostream class.
32 /// raw_ostream - This class implements an extremely fast bulk output stream
36 class raw_ostream {
38 void operator=(const raw_ostream &) LLVM_DELETED_FUNCTION;
39 raw_ostream(const raw_ostream &) LLVM_DELETED_FUNCTION;
52 /// If buffered, then the raw_ostream owns the buffer if (BufferMode ==
81 explicit raw_ostream(bool unbuffered=false)
87 virtual ~raw_ostream();
139 raw_ostream &operator<<(char C) {
146 raw_ostream &operator<<(unsigned char C) {
153 raw_ostream &operator<<(signed char C) {
160 raw_ostream &operator<<(StringRef Str) {
173 raw_ostream &operator<<(const char *Str) {
180 raw_ostream &operator<<(const std::string &Str) {
185 raw_ostream &operator<<(unsigned long N);
186 raw_ostream &operator<<(long N);
187 raw_ostream &operator<<(unsigned long long N);
188 raw_ostream &operator<<(long long N);
189 raw_ostream &operator<<(const void *P);
190 raw_ostream &operator<<(unsigned int N) {
194 raw_ostream &operator<<(int N) {
198 raw_ostream &operator<<(double N);
201 raw_ostream &write_hex(unsigned long long N);
205 raw_ostream &write_escaped(StringRef Str, bool UseHexEscapes = false);
207 raw_ostream &write(unsigned char C);
208 raw_ostream &write(const char *Ptr, size_t Size);
211 raw_ostream &operator<<(const format_object_base &Fmt);
214 raw_ostream &indent(unsigned NumSpaces);
224 virtual raw_ostream &changeColor(enum Colors Color,
235 virtual raw_ostream &resetColor() { return *this; }
238 virtual raw_ostream &reverseColor() { return *this; }
276 /// SetBuffer - Use the provided buffer as the raw_ostream buffer. This is
313 /// raw_fd_ostream - A raw_ostream that writes to a file descriptor.
315 class raw_fd_ostream : public raw_ostream {
329 /// write_impl - See raw_ostream::write_impl.
374 /// Note that because raw_ostream's are typically buffered, this flag is only
381 raw_ostream &changeColor(enum Colors colors, bool bold=false,
383 raw_ostream &resetColor() override;
385 raw_ostream &reverseColor() override;
400 /// flag is set at the time when this raw_ostream's destructor is called,
413 /// outs() - This returns a reference to a raw_ostream for standard output.
415 raw_ostream &outs();
417 /// errs() - This returns a reference to a raw_ostream for standard error.
419 raw_ostream &errs();
421 /// nulls() - This returns a reference to a raw_ostream which simply discards
423 raw_ostream &nulls();
429 /// raw_string_ostream - A raw_ostream that writes to an std::string. This is a
431 class raw_string_ostream : public raw_ostream {
434 /// write_impl - See raw_ostream::write_impl.
452 /// raw_svector_ostream - A raw_ostream that writes to an SmallVector or
455 class raw_svector_ostream : public raw_ostream {
458 /// write_impl - See raw_ostream::write_impl.
482 /// raw_null_ostream - A raw_ostream that discards all output.
483 class raw_null_ostream : public raw_ostream {
484 /// write_impl - See raw_ostream::write_impl.