LLVM API Documentation
#include <Format.h>
Public Member Functions | |
format_object_base (const char *fmt) | |
virtual | ~format_object_base () |
unsigned | print (char *Buffer, unsigned BufferSize) const |
Protected Member Functions | |
virtual void | home () |
virtual int | snprint (char *Buffer, unsigned BufferSize) const =0 |
snprint - Call snprintf() for this object, on the given buffer and size. More... | |
Protected Attributes | |
const char * | Fmt |
format_object_base - This is a helper class used for handling formatted output. It is the abstract base class of a templated derived class.
|
inline |
|
inlinevirtual |
|
protectedvirtual |
Definition at line 416 of file raw_ostream.cpp.
print - 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<<().
|
protectedpure virtual |
snprint - Call snprintf() for this object, on the given buffer and size.
Implemented in llvm::format_object5< T1, T2, T3, T4, T5 >, llvm::format_object4< T1, T2, T3, T4 >, llvm::format_object3< T1, T2, T3 >, llvm::format_object2< T1, T2 >, and llvm::format_object1< T >.
Referenced by print().
|
protected |