LLVM API Documentation

llvm::raw_svector_ostream Class Reference

#include <raw_ostream.h>

Inheritance diagram for llvm::raw_svector_ostream:
[legend]
Collaboration diagram for llvm::raw_svector_ostream:
[legend]

List of all members.

Public Member Functions

 raw_svector_ostream (SmallVectorImpl< char > &O)
 ~raw_svector_ostream ()
StringRef str ()


Detailed Description

raw_svector_ostream - A raw_ostream that writes to an SmallVector or SmallString. This is a simple adaptor class. This class does not encounter output errors.

Definition at line 445 of file raw_ostream.h.


Constructor & Destructor Documentation

raw_svector_ostream::raw_svector_ostream ( SmallVectorImpl< char > &  O  )  [explicit]

Construct a new raw_svector_ostream.

  • O - The vector to write to; this should generally have at least 128 bytes free to avoid any extraneous memory overhead.

Definition at line 489 of file raw_ostream.cpp.

References OS, and llvm::raw_ostream::SetBuffer().

raw_svector_ostream::~raw_svector_ostream (  ) 

Definition at line 498 of file raw_ostream.cpp.

References llvm::raw_ostream::flush().


Member Function Documentation

StringRef raw_svector_ostream::str (  ) 

str - Flushes the stream contents to the target vector and return a StringRef for the vector contents.

Definition at line 521 of file raw_ostream.cpp.

References llvm::raw_ostream::flush(), and OS.


The documentation for this class was generated from the following files: