LLVM API Documentation

llvm::format_object3< T1, T2, T3 > Class Template Reference

#include <Format.h>

Inheritance diagram for llvm::format_object3< T1, T2, T3 >:
[legend]
Collaboration diagram for llvm::format_object3< T1, T2, T3 >:
[legend]

List of all members.

Public Member Functions

 format_object3 (const char *fmt, const T1 &val1, const T2 &val2, const T3 &val3)
virtual unsigned print (char *Buffer, unsigned BufferSize) const


Detailed Description

template<typename T1, typename T2, typename T3>
class llvm::format_object3< T1, T2, T3 >

format_object3 - This is a templated helper class used by the format function that captures the object to be formated and the format string. When actually printed, this synthesizes the string into a temporary buffer provided and returns whether or not it is big enough.

Definition at line 107 of file Format.h.


Constructor & Destructor Documentation

template<typename T1, typename T2, typename T3>
llvm::format_object3< T1, T2, T3 >::format_object3 ( const char *  fmt,
const T1 &  val1,
const T2 &  val2,
const T3 &  val3 
) [inline]

Definition at line 112 of file Format.h.


Member Function Documentation

template<typename T1, typename T2, typename T3>
virtual unsigned llvm::format_object3< T1, T2, T3 >::print ( char *  Buffer,
unsigned  BufferSize 
) const [inline, virtual]

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.

Implements llvm::format_object_base.

Definition at line 119 of file Format.h.

References llvm::format_object_base::Fmt.


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