spdlog
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
printf_arg_formatter< OutputIt, Char > Class Template Reference

Detailed Description

template<typename OutputIt, typename Char>
class printf_arg_formatter< OutputIt, Char >

Definition at line 226 of file printf.h.

#include <printf.h>

Inheritance diagram for printf_arg_formatter< OutputIt, Char >:
[legend]

Public Types

using iterator = buffer_appender< Char >
 
using context = buffer_context< Char >
 

Public Member Functions

 printf_arg_formatter (OutputIt iter, format_specs &s, context_type &ctx)
 
OutputIt operator() (monostate value)
 
template<typename T , FMT_ENABLE_IF(detail::is_integral< T >::value) >
OutputIt operator() (T value)
 
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
OutputIt operator() (T value)
 
OutputIt operator() (const char *value)
 
OutputIt operator() (const wchar_t *value)
 
OutputIt operator() (basic_string_view< Char > value)
 
OutputIt operator() (const void *value)
 
OutputIt operator() (typename basic_format_arg< context_type >::handle handle)
 
auto operator() (typename basic_format_arg< context >::handle) -> iterator
 

Public Attributes

iterator out
 
const basic_format_specs< Char > & specs
 
locale_ref locale
 

Private Types

using base = arg_formatter< Char >
 
using context_type = basic_printf_context< OutputIt, Char >
 
using format_specs = basic_format_specs< Char >
 

Private Member Functions

OutputIt write_null_pointer (bool is_string=false)
 

Private Attributes

context_typecontext_
 

Member Typedef Documentation

◆ base

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

Definition at line 228 of file printf.h.

◆ context

template<typename Char >
using arg_formatter< Char >::context = buffer_context<Char>
inherited

Definition at line 1981 of file format.h.

◆ context_type

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

Definition at line 229 of file printf.h.

◆ format_specs

template<typename OutputIt , typename Char >
using printf_arg_formatter< OutputIt, Char >::format_specs = basic_format_specs<Char>
private

Definition at line 230 of file printf.h.

◆ iterator

template<typename Char >
using arg_formatter< Char >::iterator = buffer_appender<Char>
inherited

Definition at line 1980 of file format.h.

Constructor & Destructor Documentation

◆ printf_arg_formatter()

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

Definition at line 241 of file printf.h.

Member Function Documentation

◆ operator()() [1/9]

template<typename OutputIt , typename Char >
OutputIt printf_arg_formatter< OutputIt, Char >::operator() ( basic_string_view< Char >  value)
inline

Definition at line 283 of file printf.h.

◆ operator()() [2/9]

template<typename OutputIt , typename Char >
OutputIt printf_arg_formatter< OutputIt, Char >::operator() ( const char value)
inline

Formats a null-terminated C string.

Definition at line 272 of file printf.h.

◆ operator()() [3/9]

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

Formats a pointer.

Definition at line 288 of file printf.h.

◆ operator()() [4/9]

template<typename OutputIt , typename Char >
OutputIt printf_arg_formatter< OutputIt, Char >::operator() ( const wchar_t value)
inline

Formats a null-terminated wide C string.

Definition at line 278 of file printf.h.

◆ operator()() [5/9]

template<typename OutputIt , typename Char >
OutputIt printf_arg_formatter< OutputIt, Char >::operator() ( monostate  value)
inline

Definition at line 244 of file printf.h.

◆ operator()() [6/9]

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

Definition at line 247 of file printf.h.

◆ operator()() [7/9]

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

Definition at line 267 of file printf.h.

◆ operator()() [8/9]

template<typename Char >
auto arg_formatter< Char >::operator() ( typename basic_format_arg< context >::handle  ) -> iterator
inlineinherited

Definition at line 1991 of file format.h.

◆ operator()() [9/9]

template<typename OutputIt , typename Char >
OutputIt printf_arg_formatter< OutputIt, Char >::operator() ( typename basic_format_arg< context_type >::handle  handle)
inline

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

Definition at line 293 of file printf.h.

◆ write_null_pointer()

template<typename OutputIt , typename Char >
OutputIt printf_arg_formatter< OutputIt, Char >::write_null_pointer ( bool  is_string = false)
inlineprivate

Definition at line 234 of file printf.h.

Member Data Documentation

◆ context_

template<typename OutputIt , typename Char >
context_type& printf_arg_formatter< OutputIt, Char >::context_
private

Definition at line 232 of file printf.h.

◆ locale

template<typename Char >
locale_ref arg_formatter< Char >::locale
inherited

Definition at line 1985 of file format.h.

◆ out

template<typename Char >
iterator arg_formatter< Char >::out
inherited

Definition at line 1983 of file format.h.

◆ specs

template<typename Char >
const basic_format_specs<Char>& arg_formatter< Char >::specs
inherited

Definition at line 1984 of file format.h.


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