LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::format_object2< T1, T2 > Class Template Reference

#include <Format.h>

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

Public Member Functions

 format_object2 (const char *fmt, const T1 &val1, const T2 &val2)
 
virtual int snprint (char *Buffer, unsigned BufferSize) const
 snprint - Call snprintf() for this object, on the given buffer and size. More...
 
- Public Member Functions inherited from llvm::format_object_base
 format_object_base (const char *fmt)
 
virtual ~format_object_base ()
 
unsigned print (char *Buffer, unsigned BufferSize) const
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::format_object_base
virtual void home ()
 
- Protected Attributes inherited from llvm::format_object_base
const char * Fmt
 

Detailed Description

template<typename T1, typename T2>
class llvm::format_object2< T1, T2 >

format_object2 - 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 97 of file Format.h.

Constructor & Destructor Documentation

template<typename T1, typename T2>
llvm::format_object2< T1, T2 >::format_object2 ( const char *  fmt,
const T1 val1,
const T2 &  val2 
)
inline

Definition at line 101 of file Format.h.

Member Function Documentation

template<typename T1, typename T2>
virtual int llvm::format_object2< T1, T2 >::snprint ( char *  Buffer,
unsigned  BufferSize 
) const
inlinevirtual

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

Implements llvm::format_object_base.

Definition at line 105 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: