LLVM API Documentation

llvm::raw_string_ostream Class Reference

#include <raw_ostream.h>

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

List of all members.

Public Member Functions

 raw_string_ostream (std::string &O)
 ~raw_string_ostream ()
std::string & str ()
virtual void flush_impl ()


Detailed Description

raw_string_ostream - A raw_ostream that writes to an std::string. This is a simple adaptor class.

Definition at line 238 of file raw_ostream.h.


Constructor & Destructor Documentation

llvm::raw_string_ostream::raw_string_ostream ( std::string &  O  )  [inline]

Definition at line 241 of file raw_ostream.h.

raw_string_ostream::~raw_string_ostream (  ) 

Definition at line 310 of file raw_ostream.cpp.

References llvm::raw_ostream::flush().


Member Function Documentation

std::string& llvm::raw_string_ostream::str (  )  [inline]

str - Flushes the stream contents to the target string and returns the string's reference.

Definition at line 246 of file raw_ostream.h.

References llvm::raw_ostream::flush().

Referenced by llvm::ScheduleDAGSDNodes::getGraphNodeLabel(), llvm::ScheduleDAGInstrs::getGraphNodeLabel(), and getLLVMName().

void raw_string_ostream::flush_impl (  )  [virtual]

flush_impl - The is the piece of the class that is implemented by subclasses. This outputs the currently buffered data and resets the buffer to empty.

flush_impl - The is the piece of the class that is implemented by subclasses. This outputs the currently buffered data and resets the buffer to empty.

Implements llvm::raw_ostream.

Definition at line 317 of file raw_ostream.cpp.

References llvm::raw_ostream::HandleFlush(), llvm::raw_ostream::OutBufCur, and llvm::raw_ostream::OutBufStart.


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