LLVM API Documentation

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

#include <Format.h>

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

List of all members.

Public Member Functions

 format_object3 (const char *fmt, const T1 &val1, const T2 &val2, const T3 &val3)
int snprint (char *Buffer, unsigned BufferSize) const override
 snprint - Call snprintf() for this object, on the given buffer and size.

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 115 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 120 of file Format.h.


Member Function Documentation

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

snprint - Call snprintf() for this object, on the given buffer and size.

Implements llvm::format_object_base.

Definition at line 124 of file Format.h.

References llvm::format_object_base::Fmt, and llvm::LibFunc::snprintf.


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