LLVM API Documentation
#include <Format.h>


Public Member Functions | |
| format_object_base (const char *fmt) | |
| unsigned | print (char *Buffer, unsigned BufferSize) const |
Protected Member Functions | |
| ~format_object_base () | |
| virtual void | home () |
| virtual int | snprint (char *Buffer, unsigned BufferSize) const =0 |
| Call snprintf() for this object, on the given buffer and size. | |
Protected Attributes | |
| const char * | Fmt |
This is a helper class used for handling formatted output. It is the abstract base class of a templated derived class.
| llvm::format_object_base::~format_object_base | ( | ) | [inline, protected] |
| llvm::format_object_base::format_object_base | ( | const char * | fmt | ) | [inline] |
| void format_object_base::home | ( | ) | [protected, virtual] |
Definition at line 422 of file raw_ostream.cpp.
| unsigned llvm::format_object_base::print | ( | char * | Buffer, |
| unsigned | BufferSize | ||
| ) | const [inline] |
Format the object into the specified buffer. On success, this returns the length of the formatted string. If the buffer is too small, this returns a length to retry with, which will be larger than BufferSize.
Definition at line 56 of file Format.h.
Referenced by llvm::raw_ostream::operator<<().
| virtual int llvm::format_object_base::snprint | ( | char * | Buffer, |
| unsigned | BufferSize | ||
| ) | const [protected, pure virtual] |
Call snprintf() for this object, on the given buffer and size.
Implemented in llvm::final< T >, llvm::final< T >, llvm::final< T >, llvm::final< T >, llvm::final< T >, and llvm::final< T >.
Referenced by print().
const char* llvm::format_object_base::Fmt [protected] |