LLVM: llvm::vfs::OutputFile Class Reference (original) (raw)

A virtualized output file that writes to a specific backend. More...

#include "[llvm/Support/VirtualOutputFile.h](VirtualOutputFile%5F8h%5Fsource.html)"

Public Member Functions
StringRef getPath () const
bool isOpen () const
Check if keep() or discard() has already been called.
operator bool () const
raw_pwrite_stream & getOS ()
operator raw_pwrite_stream & ()
template<class T>
raw_ostream & operator<< (T &&V)
LLVM_ABI Error keep ()
Keep an output.
LLVM_ABI Error discard ()
Discard an output, cleaning up any temporary state.
void discardOnDestroy (unique_function< void(Error E)> Handler)
Discard the output when destroying it if it's still open, sending the result to Handler.
LLVM_ABI Expected< std::unique_ptr< raw_pwrite_stream > > createProxy ()
Create a proxy stream for clients that need to pass an owned stream to a producer.
bool hasOpenProxy () const
std::unique_ptr< OutputFileImpl > takeImpl ()
Take the implementation.
bool isNull () const
Check whether this is a null output file.
OutputFile ()=default
OutputFile (const Twine &Path, std::unique_ptr< OutputFileImpl > Impl)
~OutputFile ()
OutputFile (OutputFile &&O)
OutputFile & operator= (OutputFile &&O)

A virtualized output file that writes to a specific backend.

One of keep(), discard(), or discardOnDestroy() must be called before destruction.

Definition at line 59 of file VirtualOutputFile.h.

llvm::vfs::OutputFile::OutputFile ( ) default

OutputFile() [2/3]

~OutputFile()

llvm::vfs::OutputFile::~OutputFile ( ) inline

OutputFile() [3/3]

llvm::vfs::OutputFile::OutputFile ( OutputFile && O) inline

createProxy()

discard()

Error OutputFile::discard ( )

discardOnDestroy()

Discard the output when destroying it if it's still open, sending the result to Handler.

Definition at line 93 of file VirtualOutputFile.h.

References E().

getOS()

getPath()

StringRef llvm::vfs::OutputFile::getPath ( ) const inline

hasOpenProxy()

bool llvm::vfs::OutputFile::hasOpenProxy ( ) const inline

isNull()

bool llvm::vfs::OutputFile::isNull ( ) const inline

isOpen()

bool llvm::vfs::OutputFile::isOpen ( ) const inline

keep()

Error OutputFile::keep ( )

operator bool()

llvm::vfs::OutputFile::operator bool ( ) const inlineexplicit

operator raw_pwrite_stream &()

operator<<()

template<class T>

raw_ostream & llvm::vfs::OutputFile::operator<< ( T && V) inline

operator=()

takeImpl()

std::unique_ptr< OutputFileImpl > llvm::vfs::OutputFile::takeImpl ( ) inline

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