LLVM 19.0.0git
Public Member Functions | List of all members
llvm::format_object< Ts > Class Template Referencefinal

#include "llvm/Support/Format.h"

Inheritance diagram for llvm::format_object< Ts >:
Inheritance graph
[legend]

Public Member Functions

 format_object (const char *fmt, const Ts &... vals)
 
int snprint (char *Buffer, unsigned BufferSize) const override
 Call snprintf() for this object, on the given buffer and size.
 
- Public Member Functions inherited from llvm::format_object_base
 format_object_base (const char *fmt)
 
unsigned print (char *Buffer, unsigned BufferSize) const
 Format the object into the specified buffer.
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::format_object_base
 ~format_object_base ()=default
 
 format_object_base (const format_object_base &)=default
 
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 inherited from llvm::format_object_base
const charFmt
 

Detailed Description

template<typename... Ts>
class llvm::format_object< Ts >

Definition at line 91 of file Format.h.

Constructor & Destructor Documentation

◆ format_object()

template<typename... Ts>
llvm::format_object< Ts >::format_object ( const char fmt,
const Ts &...  vals 
)
inline

Definition at line 105 of file Format.h.

Member Function Documentation

◆ snprint()

template<typename... Ts>
int llvm::format_object< Ts >::snprint ( char Buffer,
unsigned  BufferSize 
) const
inlineoverridevirtual

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

Implements llvm::format_object_base.

Definition at line 110 of file Format.h.


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