SoPlex Documentation
Loading...
Searching...
No Matches

#include <printf.h>

Inheritance diagram for printf_arg_formatter< Range >:
arg_formatter_base< Range, ErrorHandler >

Public Types

using iterator = typename Range::iterator
 
using format_specs = typename base::format_specs
 
- Public Types inherited from arg_formatter_base< Range, ErrorHandler >
using char_type = typename Range::value_type
 
using iterator = typename Range::iterator
 
using format_specs = basic_format_specs<char_type>
 

Public Member Functions

 printf_arg_formatter (iterator iter, format_specs &specs, context_type &ctx)
 
template<typename T , FMT_ENABLE_IF(fmt::internal::is_integral< T >::value) >
iterator operator() (T value)
 
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
iterator operator() (T value)
 
iterator operator() (const char *value)
 
iterator operator() (const wchar_t *value)
 
iterator operator() (basic_string_view< char_type > value)
 
iterator operator() (monostate value)
 
iterator operator() (const void *value)
 
iterator operator() (typename basic_format_arg< context_type >::handle handle)
 
- Public Member Functions inherited from arg_formatter_base< Range, ErrorHandler >
 arg_formatter_base (Range r, format_specs *s, locale_ref loc)
 
iterator operator() (monostate)
 
template<typename T , FMT_ENABLE_IF(is_integral< T >::value) >
iterator operator() (T value)
 
iterator operator() (char_type value)
 
iterator operator() (bool value)
 
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
iterator operator() (T value)
 
iterator operator() (const char_type *value)
 
iterator operator() (basic_string_view< char_type > value)
 
iterator operator() (const void *value)
 

Private Types

using char_type = typename Range::value_type
 
using base = internal::arg_formatter_base<Range>
 
using context_type = basic_printf_context<iterator, char_type>
 

Private Member Functions

void write_null_pointer (char)
 
void write_null_pointer (wchar_t)
 

Private Attributes

context_typecontext_
 

Additional Inherited Members

- Protected Member Functions inherited from arg_formatter_base< Range, ErrorHandler >
writer_typewriter ()
 
FMT_DEPRECATED format_specsspec ()
 
format_specsspecs ()
 
iterator out ()
 
void write (bool value)
 
void write (const char_type *value)
 

Detailed Description

template<typename Range>
class printf_arg_formatter< Range >

\rst The printf argument formatter. \endrst

Definition at line 200 of file printf.h.

Member Typedef Documentation

◆ base

template<typename Range >
using base = internal::arg_formatter_base<Range>
private

Definition at line 206 of file printf.h.

◆ char_type

template<typename Range >
using char_type = typename Range::value_type
private

Definition at line 205 of file printf.h.

◆ context_type

template<typename Range >
using context_type = basic_printf_context<iterator, char_type>
private

Definition at line 207 of file printf.h.

◆ format_specs

template<typename Range >
using format_specs = typename base::format_specs

Definition at line 222 of file printf.h.

◆ iterator

template<typename Range >
using iterator = typename Range::iterator

Definition at line 202 of file printf.h.

Constructor & Destructor Documentation

◆ printf_arg_formatter()

template<typename Range >
printf_arg_formatter ( iterator iter,
format_specs & specs,
context_type & ctx )

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

Definition at line 231 of file printf.h.

Member Function Documentation

◆ operator()() [1/8]

template<typename Range >
iterator operator() ( basic_string_view< char_type > value)

Definition at line 284 of file printf.h.

References arg_formatter_base< Range, ErrorHandler >::operator()().

◆ operator()() [2/8]

◆ operator()() [3/8]

◆ operator()() [4/8]

◆ operator()() [5/8]

template<typename Range >
iterator operator() ( monostate value)

Definition at line 288 of file printf.h.

References arg_formatter_base< Range, ErrorHandler >::operator()().

◆ operator()() [6/8]

template<typename Range >
template<typename T , FMT_ENABLE_IF(fmt::internal::is_integral< T >::value) >
iterator operator() ( T value)

◆ operator()() [7/8]

template<typename Range >
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
iterator operator() ( T value)

Definition at line 258 of file printf.h.

References arg_formatter_base< Range, ErrorHandler >::operator()().

◆ operator()() [8/8]

template<typename Range >
iterator operator() ( typename basic_format_arg< context_type >::handle handle)

◆ write_null_pointer() [1/2]

◆ write_null_pointer() [2/2]

template<typename Range >
void write_null_pointer ( wchar_t )
private

Member Data Documentation

◆ context_

template<typename Range >
context_type& context_
private

Definition at line 209 of file printf.h.

Referenced by printf_arg_formatter< Range >::operator()().