Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::BasicPrintfArgFormatter< Impl, Char, Spec > Class Template Reference

#include <printf.h>

+ Inheritance diagram for fmt::BasicPrintfArgFormatter< Impl, Char, Spec >:
+ Collaboration diagram for fmt::BasicPrintfArgFormatter< Impl, Char, Spec >:

Public Member Functions

 BasicPrintfArgFormatter (BasicWriter< Char > &w, Spec &s)
 
void visit_bool (bool value)
 
void visit_char (int value)
 
void visit_cstring (const char *value)
 
void visit_pointer (const void *value)
 
void visit_custom (internal::Arg::CustomValue c)
 
- Public Member Functions inherited from fmt::internal::ArgFormatterBase< Impl, Char, Spec >
 ArgFormatterBase (BasicWriter< Char > &w, Spec &s)
 
void visit_any_int (T value)
 
void visit_any_double (T value)
 
void visit_bool (bool value)
 
void visit_char (int value)
 
void visit_cstring (const char *value)
 
void visit_string (internal::Arg::StringValue< char > value)
 
void visit_wstring (internal::Arg::StringValue< Char > value)
 
void visit_pointer (const void *value)
 
- Public Member Functions inherited from fmt::ArgVisitor< Impl, void >
void report_unhandled_arg ()
 
void visit_unhandled_arg ()
 
void visit_int (int value)
 
void visit_long_long (LongLong value)
 
void visit_uint (unsigned value)
 
void visit_ulong_long (ULongLong value)
 
void visit_bool (bool value)
 
void visit_char (int value)
 
void visit_any_int (T)
 
void visit_double (double value)
 
void visit_long_double (long double value)
 
void visit_any_double (T)
 
void visit_cstring (const char *)
 
void visit_string (Arg::StringValue< char >)
 
void visit_wstring (Arg::StringValue< wchar_t >)
 
void visit_pointer (const void *)
 
void visit_custom (Arg::CustomValue)
 
void visit (const Arg &arg)
 

Package Attributes

 :ArgFormatterBase<Impl
 
 Char
 
Spec Base
 
- Package Attributes inherited from fmt::internal::ArgFormatterBase< Impl, Char, Spec >
 __pad0__
 
- Package Attributes inherited from fmt::ArgVisitor< Impl, void >
 __pad0__
 

Private Member Functions

void write_null_pointer ()
 

Additional Inherited Members

- Public Types inherited from fmt::internal::ArgFormatterBase< Impl, Char, Spec >
typedef Spec SpecType
 
- Protected Member Functions inherited from fmt::internal::ArgFormatterBase< Impl, Char, Spec >
BasicWriter< Char > & writer ()
 
Spec & spec ()
 
void write (bool value)
 
void write (const char *value)
 

Detailed Description

template<typename Impl, typename Char, typename Spec>
class fmt::BasicPrintfArgFormatter< Impl, Char, Spec >

\rst A printf argument formatter based on the curiously recurring template pattern <http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern>_.

To use ~fmtBasicPrintfArgFormatter define a subclass that implements some or all of the visit methods with the same signatures as the methods in ~fmt::ArgVisitor, for example, ~fmtArgVisitor::visit_int(). Pass the subclass as the Impl template parameter. When a formatting function processes an argument, it will dispatch to a visit method specific to the argument type. For example, if the argument type is double then the ~fmtArgVisitor::visit_double() method of a subclass will be called. If the subclass doesn't contain a method with this signature, then a corresponding method of ~fmtBasicPrintfArgFormatter or its superclass will be called. \endrst

Definition at line 220 of file printf.h.

Constructor & Destructor Documentation

◆ BasicPrintfArgFormatter()

template<typename Impl , typename Char , typename Spec >
fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::BasicPrintfArgFormatter ( BasicWriter< Char > & w,
Spec & s )
inline

\rst Constructs an argument formatter object. writer* is a reference to the output writer and spec contains format specifier information for standard argument types. \endrst

Definition at line 238 of file printf.h.

Member Function Documentation

◆ visit_bool()

template<typename Impl , typename Char , typename Spec >
void fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::visit_bool ( bool value)
inline

Formats an argument of type bool.

Definition at line 242 of file printf.h.

◆ visit_char()

template<typename Impl , typename Char , typename Spec >
void fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::visit_char ( int value)
inline

Formats a character.

Definition at line 251 of file printf.h.

◆ visit_cstring()

template<typename Impl , typename Char , typename Spec >
void fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::visit_cstring ( const char * value)
inline

Formats a null-terminated C string.

Definition at line 274 of file printf.h.

+ Here is the call graph for this function:

◆ visit_custom()

template<typename Impl , typename Char , typename Spec >
void fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::visit_custom ( internal::Arg::CustomValue c)
inline

Formats an argument of a custom (user-defined) type.

Definition at line 292 of file printf.h.

+ Here is the call graph for this function:

◆ visit_pointer()

template<typename Impl , typename Char , typename Spec >
void fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::visit_pointer ( const void * value)
inline

Formats a pointer.

Definition at line 284 of file printf.h.

+ Here is the call graph for this function:

◆ write_null_pointer()

template<typename Impl , typename Char , typename Spec >
void fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::write_null_pointer ( )
inlineprivate

Definition at line 223 of file printf.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ __pad0__

template<typename Impl , typename Char , typename Spec >
fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::__pad0__
package

Definition at line 228 of file printf.h.

◆ Base

template<typename Impl , typename Char , typename Spec >
Spec fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::Base
package

Definition at line 228 of file printf.h.

◆ Char

template<typename Impl , typename Char , typename Spec >
fmt::BasicPrintfArgFormatter< Impl, Char, Spec >::Char
package

Definition at line 228 of file printf.h.


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