class raw_string_ostream
Declaration
class raw_string_ostream : public raw_ostream { /* full declaration omitted */ };
Description
A raw_ostream that writes to an std::string. This is a simple adaptor class. This class does not encounter output errors.
Declared at: llvm/include/llvm/Support/raw_ostream.h:516
Inherits from: raw_ostream
Member Variables
Inherited from raw_ostream:
- public static BLACK = Colors::BLACK
- public static RED = Colors::RED
- public static GREEN = Colors::GREEN
- public static YELLOW = Colors::YELLOW
- public static BLUE = Colors::BLUE
- public static MAGENTA = Colors::MAGENTA
- public static CYAN = Colors::CYAN
- public static WHITE = Colors::WHITE
- public static SAVEDCOLOR = Colors::SAVEDCOLOR
- public static RESET = Colors::RESET
Method Overview
- public raw_string_ostream(std::string & O)
- public std::string & str()
- public ~raw_string_ostream()
Inherited from raw_ostream:
- public GetBufferSize
- public GetNumBytesInBuffer
- protected SetBuffer
- public SetBufferSize
- public SetBuffered
- public SetUnbuffered
- public changeColor
- public enable_colors
- public flush
- protected getBufferStart
- public has_colors
- public indent
- public is_displayed
- protected preferred_buffer_size
- public resetColor
- public reverseColor
- public tell
- public write
- public write
- public write_escaped
- public write_hex
- public write_uuid
- public write_zeros
Methods
¶raw_string_ostream(std::string& O)
raw_string_ostream(std::string& O)
Declared at: llvm/include/llvm/Support/raw_ostream.h:527
Parameters
- std::string& O
¶std::string& str()
std::string& str()
Description
Flushes the stream contents to the target string and returns the string's reference.
Declared at: llvm/include/llvm/Support/raw_ostream.h:532
¶~raw_string_ostream()
~raw_string_ostream()
Declared at: llvm/include/llvm/Support/raw_ostream.h:528