SoPlex Documentation
Loading...
Searching...
No Matches
arg_formatter< OutputIt, Char > Class Template Reference

#include <format.h>

Inheritance diagram for arg_formatter< OutputIt, Char >:
arg_formatter_base< OutputIt, Char, ErrorHandler >

Public Types

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

Public Member Functions

 arg_formatter (context_type &ctx, basic_format_parse_context< char_type > *parse_ctx=nullptr, format_specs *specs=nullptr, const Char *ptr=nullptr)
 
iterator operator() (typename basic_format_arg< context_type >::handle handle)
 
- Public Member Functions inherited from arg_formatter_base< OutputIt, Char, ErrorHandler >
 arg_formatter_base (OutputIt out, format_specs *s, locale_ref loc)
 
iterator operator() (monostate)
 
template<typename T , FMT_ENABLE_IF(is_integral< T >::value) >
FMT_INLINE iterator operator() (T value)
 
iterator operator() (Char 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 *value)
 
iterator operator() (basic_string_view< Char > value)
 
iterator operator() (const void *value)
 

Private Types

using char_type = Char
 
using base = arg_formatter_base<OutputIt, Char>
 
using context_type = basic_format_context<OutputIt, Char>
 

Private Attributes

context_typectx_
 
basic_format_parse_context< char_type > * parse_ctx_
 
const Char * ptr_
 

Additional Inherited Members

- Protected Member Functions inherited from arg_formatter_base< OutputIt, Char, ErrorHandler >
iterator out ()
 
format_specsspecs ()
 
void write (bool value)
 
void write (const Char *value)
 

Detailed Description

template<typename OutputIt, typename Char>
class detail::arg_formatter< OutputIt, Char >

The default argument formatter.

Definition at line 2302 of file format.h.

Member Typedef Documentation

◆ base

template<typename OutputIt , typename Char >
using base = arg_formatter_base<OutputIt, Char>
private

Definition at line 2305 of file format.h.

◆ char_type

template<typename OutputIt , typename Char >
using char_type = Char
private

Definition at line 2304 of file format.h.

◆ context_type

template<typename OutputIt , typename Char >
using context_type = basic_format_context<OutputIt, Char>
private

Definition at line 2306 of file format.h.

◆ format_specs

template<typename OutputIt , typename Char >
using format_specs = typename base::format_specs

Definition at line 2314 of file format.h.

◆ iterator

template<typename OutputIt , typename Char >
using iterator = typename base::iterator

Definition at line 2313 of file format.h.

Constructor & Destructor Documentation

◆ arg_formatter()

template<typename OutputIt , typename Char >
arg_formatter ( context_type & ctx,
basic_format_parse_context< char_type > * parse_ctx = nullptr,
format_specs * specs = nullptr,
const Char * ptr = nullptr )
explicit

\rst Constructs an argument formatter object. ctx* is a reference to the formatting context, specs* contains format specifier information for standard argument types. \endrst

Definition at line 2323 of file format.h.

Member Function Documentation

◆ operator()()

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

Formats an argument of a user-defined type.

Definition at line 2335 of file format.h.

References advance_to(), basic_format_arg< Context >::handle::format(), and basic_format_context< OutputIt, Char >::out().

Member Data Documentation

◆ ctx_

template<typename OutputIt , typename Char >
context_type& ctx_
private

Definition at line 2308 of file format.h.

◆ parse_ctx_

template<typename OutputIt , typename Char >
basic_format_parse_context<char_type>* parse_ctx_
private

Definition at line 2309 of file format.h.

◆ ptr_

template<typename OutputIt , typename Char >
const Char* ptr_
private

Definition at line 2310 of file format.h.