class buffer_unique_ostream

Declaration

class buffer_unique_ostream : public raw_svector_ostream { /* full declaration omitted */ };

Description

A raw_ostream that writes to an SmallVector or SmallString. This is a simple adaptor class. This class does not encounter output errors. raw_svector_ostream operates without a buffer, delegating all memory management to the SmallString. Thus the SmallString is always up-to-date, may be used directly and there is no need to call flush().

Declared at: llvm/include/llvm/Support/raw_ostream.h:720

Inherits from: raw_svector_ostream

Member Variables

private std::unique_ptr<raw_ostream> OS
private SmallVector<char, 0> Buffer

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

Inherited from raw_svector_ostream:

Inherited from raw_pwrite_stream:

Inherited from raw_ostream:

Methods

void anchor()

Declared at: llvm/include/llvm/Support/raw_ostream.h:724

buffer_unique_ostream(
    std::unique_ptr<raw_ostream> OS)

Declared at: llvm/include/llvm/Support/raw_ostream.h:727

Parameters

std::unique_ptr<raw_ostream> OS

~buffer_unique_ostream()

Declared at: llvm/include/llvm/Support/raw_ostream.h:733