LLVM API Documentation

llvm::raw_ostream Class Reference

#include <raw_ostream.h>

Inheritance diagram for llvm::raw_ostream:

Inheritance graph
[legend]
Collaboration diagram for llvm::raw_ostream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 raw_ostream ()
virtual ~raw_ostream ()
void SetBufferSize (unsigned Size)
void flush ()
raw_ostreamoperator<< (char C)
raw_ostreamoperator<< (unsigned char C)
raw_ostreamoperator<< (signed char C)
raw_ostreamoperator<< (const char *Str)
raw_ostreamoperator<< (const std::string &Str)
raw_ostreamoperator<< (unsigned long N)
raw_ostreamoperator<< (long N)
raw_ostreamoperator<< (unsigned long long N)
raw_ostreamoperator<< (long long N)
raw_ostreamoperator<< (const void *P)
raw_ostreamoperator<< (unsigned int N)
raw_ostreamoperator<< (int N)
raw_ostreamoperator<< (double N)
raw_ostreamwrite (const char *Ptr, unsigned Size)
raw_ostreamoperator<< (const format_object_base &Fmt)

Protected Member Functions

virtual void flush_impl ()=0
void HandleFlush ()

Protected Attributes

char * OutBufStart
char * OutBufEnd
char * OutBufCur


Detailed Description

raw_ostream - This class implements an extremely fast bulk output stream that can *only* output to a stream. It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time.

Definition at line 32 of file raw_ostream.h.


Constructor & Destructor Documentation

llvm::raw_ostream::raw_ostream (  )  [inline]

Definition at line 36 of file raw_ostream.h.

References OutBufCur, OutBufEnd, and OutBufStart.

virtual llvm::raw_ostream::~raw_ostream (  )  [inline, virtual]

Definition at line 41 of file raw_ostream.h.

References OutBufStart.


Member Function Documentation

void llvm::raw_ostream::SetBufferSize ( unsigned  Size  )  [inline]

SetBufferSize - Set the internal buffer size to the specified amount instead of the default.

Definition at line 51 of file raw_ostream.h.

References flush(), OutBufCur, OutBufEnd, and OutBufStart.

Referenced by HandleFlush().

void llvm::raw_ostream::flush (  )  [inline]

raw_ostream& llvm::raw_ostream::operator<< ( char  C  )  [inline]

Definition at line 71 of file raw_ostream.h.

References flush_impl(), OutBufCur, and OutBufEnd.

Referenced by operator<<().

raw_ostream& llvm::raw_ostream::operator<< ( unsigned char  C  )  [inline]

Definition at line 78 of file raw_ostream.h.

References flush_impl(), OutBufCur, and OutBufEnd.

raw_ostream& llvm::raw_ostream::operator<< ( signed char  C  )  [inline]

Definition at line 85 of file raw_ostream.h.

References flush_impl(), OutBufCur, and OutBufEnd.

raw_ostream& llvm::raw_ostream::operator<< ( const char *  Str  )  [inline]

Definition at line 92 of file raw_ostream.h.

References write().

raw_ostream& llvm::raw_ostream::operator<< ( const std::string &  Str  )  [inline]

Definition at line 96 of file raw_ostream.h.

References write().

raw_ostream & raw_ostream::operator<< ( unsigned long  N  ) 

Definition at line 48 of file raw_ostream.cpp.

References write().

raw_ostream & raw_ostream::operator<< ( long  N  ) 

Definition at line 64 of file raw_ostream.cpp.

References flush_impl(), OutBufCur, and OutBufEnd.

raw_ostream & raw_ostream::operator<< ( unsigned long long  N  ) 

Definition at line 76 of file raw_ostream.cpp.

References write().

raw_ostream & raw_ostream::operator<< ( long long  N  ) 

Definition at line 92 of file raw_ostream.cpp.

References flush_impl(), OutBufCur, and OutBufEnd.

raw_ostream & raw_ostream::operator<< ( const void *  P  ) 

Definition at line 104 of file raw_ostream.cpp.

References llvm::format().

raw_ostream& llvm::raw_ostream::operator<< ( unsigned int  N  )  [inline]

Definition at line 105 of file raw_ostream.h.

raw_ostream& llvm::raw_ostream::operator<< ( int  N  )  [inline]

Definition at line 109 of file raw_ostream.h.

raw_ostream& llvm::raw_ostream::operator<< ( double  N  )  [inline]

Definition at line 113 of file raw_ostream.h.

References llvm::ftostr(), and operator<<().

raw_ostream & raw_ostream::write ( const char *  Ptr,
unsigned  Size 
)

raw_ostream & raw_ostream::operator<< ( const format_object_base Fmt  ) 

virtual void llvm::raw_ostream::flush_impl (  )  [protected, pure 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.

Implemented in llvm::raw_fd_ostream, llvm::raw_os_ostream, llvm::raw_string_ostream, and llvm::raw_svector_ostream.

Referenced by flush(), operator<<(), and write().

void llvm::raw_ostream::HandleFlush (  )  [inline, protected]

HandleFlush - A stream's implementation of flush should call this after emitting the bytes to the data sink.

Definition at line 135 of file raw_ostream.h.

References OutBufCur, OutBufStart, and SetBufferSize().

Referenced by llvm::raw_svector_ostream::flush_impl(), llvm::raw_string_ostream::flush_impl(), llvm::raw_os_ostream::flush_impl(), and llvm::raw_fd_ostream::flush_impl().


Member Data Documentation

char* llvm::raw_ostream::OutBufStart [protected]

char * llvm::raw_ostream::OutBufEnd [protected]

Definition at line 34 of file raw_ostream.h.

Referenced by operator<<(), raw_ostream(), SetBufferSize(), and write().

char * llvm::raw_ostream::OutBufCur [protected]


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.