Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
detail::printf_arg_formatter< Char > Class Template Reference

#include <printf.h>

Inheritance diagram for detail::printf_arg_formatter< Char >:
Inheritance graph
[legend]

Public Member Functions

void operator() (basic_string_view< Char > value)
 
void operator() (const char *value)
 
void operator() (const void *value)
 
void operator() (const wchar_t *value)
 
void operator() (monostate value)
 
template<typename T , FMT_ENABLE_IF(detail::is_integral< T >::value) >
void operator() (T value)
 
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
void operator() (T value)
 
void operator() (typename basic_format_arg< context_type >::handle handle)
 
 printf_arg_formatter (buffer_appender< Char > iter, format_specs< Char > &s, context_type &ctx)
 
- Public Member Functions inherited from detail::arg_formatter< Char >
template<typename T >
FMT_CONSTEXPR FMT_INLINE auto operator() (T value) -> iterator
 
auto operator() (typename basic_format_arg< context >::handle) -> iterator
 

Private Types

using base = arg_formatter< Char >
 
using context_type = basic_printf_context< Char >
 

Private Member Functions

void write_null_pointer (bool is_string=false)
 

Private Attributes

context_typecontext_
 

Additional Inherited Members

- Public Types inherited from detail::arg_formatter< Char >
using context = buffer_context< Char >
 
using iterator = buffer_appender< Char >
 
- Public Attributes inherited from detail::arg_formatter< Char >
locale_ref locale
 
iterator out
 
const format_specs< Char > & specs
 

Detailed Description

template<typename Char>
class detail::printf_arg_formatter< Char >

Definition at line 234 of file printf.h.

Member Typedef Documentation

◆ base

template<typename Char >
using detail::printf_arg_formatter< Char >::base = arg_formatter<Char>
private

Definition at line 236 of file printf.h.

◆ context_type

template<typename Char >
using detail::printf_arg_formatter< Char >::context_type = basic_printf_context<Char>
private

Definition at line 237 of file printf.h.

Constructor & Destructor Documentation

◆ printf_arg_formatter()

template<typename Char >
detail::printf_arg_formatter< Char >::printf_arg_formatter ( buffer_appender< Char >  iter,
format_specs< Char > &  s,
context_type ctx 
)
inline

Definition at line 248 of file printf.h.

Member Function Documentation

◆ operator()() [1/8]

template<typename Char >
void detail::printf_arg_formatter< Char >::operator() ( basic_string_view< Char >  value)
inline

Definition at line 298 of file printf.h.

◆ operator()() [2/8]

template<typename Char >
void detail::printf_arg_formatter< Char >::operator() ( const char *  value)
inline

Formats a null-terminated C string.

Definition at line 283 of file printf.h.

◆ operator()() [3/8]

template<typename Char >
void detail::printf_arg_formatter< Char >::operator() ( const void *  value)
inline

Formats a pointer.

Definition at line 301 of file printf.h.

◆ operator()() [4/8]

template<typename Char >
void detail::printf_arg_formatter< Char >::operator() ( const wchar_t *  value)
inline

Formats a null-terminated wide C string.

Definition at line 291 of file printf.h.

◆ operator()() [5/8]

template<typename Char >
void detail::printf_arg_formatter< Char >::operator() ( monostate  value)
inline

Definition at line 252 of file printf.h.

◆ operator()() [6/8]

template<typename Char >
template<typename T , FMT_ENABLE_IF(detail::is_integral< T >::value) >
void detail::printf_arg_formatter< Char >::operator() ( value)
inline

Definition at line 255 of file printf.h.

◆ operator()() [7/8]

template<typename Char >
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
void detail::printf_arg_formatter< Char >::operator() ( value)
inline

Definition at line 278 of file printf.h.

◆ operator()() [8/8]

template<typename Char >
void detail::printf_arg_formatter< Char >::operator() ( typename basic_format_arg< context_type >::handle  handle)
inline

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

Definition at line 309 of file printf.h.

◆ write_null_pointer()

template<typename Char >
void detail::printf_arg_formatter< Char >::write_null_pointer ( bool  is_string = false)
inlineprivate

Definition at line 241 of file printf.h.

Member Data Documentation

◆ context_

template<typename Char >
context_type& detail::printf_arg_formatter< Char >::context_
private

Definition at line 239 of file printf.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30