Scippy

SoPlex

Sequential object-oriented simPlex

arg_formatter_base< Range, ErrorHandler > Class Template Reference

#include <format.h>

Classes

struct  char_spec_handler
 
struct  char_writer
 
struct  cstring_spec_handler
 

Public Types

using char_type = typename Range::value_type
 
using iterator = typename Range::iterator
 
using format_specs = basic_format_specs< char_type >
 

Public Member Functions

 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)
 

Protected Member Functions

writer_typewriter ()
 
FMT_DEPRECATED format_specsspec ()
 
format_specsspecs ()
 
iterator out ()
 
void write (bool value)
 
void write (const char_type *value)
 

Private Types

using writer_type = basic_writer< Range >
 

Private Member Functions

void write_char (char_type value)
 
void write_pointer (const void *p)
 

Private Attributes

writer_type writer_
 
format_specsspecs_
 

Detailed Description

template<typename Range, typename ErrorHandler = internal::error_handler>
class internal::arg_formatter_base< Range, ErrorHandler >

Definition at line 1779 of file format.h.

Member Typedef Documentation

◆ char_type

using char_type = typename Range::value_type

Definition at line 1781 of file format.h.

◆ format_specs

Definition at line 1783 of file format.h.

◆ iterator

using iterator = typename Range::iterator

Definition at line 1782 of file format.h.

◆ writer_type

using writer_type = basic_writer<Range>
private

Definition at line 1786 of file format.h.

Constructor & Destructor Documentation

◆ arg_formatter_base()

arg_formatter_base ( Range  r,
format_specs s,
locale_ref  loc 
)

Definition at line 1832 of file format.h.

Member Function Documentation

◆ operator()() [1/8]

iterator operator() ( monostate  )

Definition at line 1835 of file format.h.

◆ operator()() [2/8]

iterator operator() ( value)

Definition at line 1841 of file format.h.

◆ operator()() [3/8]

iterator operator() ( char_type  value)

Definition at line 1849 of file format.h.

◆ operator()() [4/8]

iterator operator() ( bool  value)

Definition at line 1855 of file format.h.

◆ operator()() [5/8]

iterator operator() ( value)

Definition at line 1862 of file format.h.

◆ operator()() [6/8]

iterator operator() ( const char_type value)

Definition at line 1894 of file format.h.

◆ operator()() [7/8]

iterator operator() ( basic_string_view< char_type value)

Definition at line 1901 of file format.h.

◆ operator()() [8/8]

iterator operator() ( const void *  value)

Definition at line 1911 of file format.h.

◆ out()

iterator out ( )
protected

Definition at line 1814 of file format.h.

◆ spec()

FMT_DEPRECATED format_specs* spec ( )
protected

Definition at line 1812 of file format.h.

◆ specs()

format_specs* specs ( )
protected

Definition at line 1813 of file format.h.

◆ write() [1/2]

void write ( bool  value)
protected

◆ write() [2/2]

void write ( const char_type value)
protected

Definition at line 1821 of file format.h.

◆ write_char()

void write_char ( char_type  value)
private

◆ write_pointer()

void write_pointer ( const void *  p)
private

◆ writer()

writer_type& writer ( )
protected

Definition at line 1811 of file format.h.

Member Data Documentation

◆ specs_

format_specs* specs_
private

◆ writer_

writer_type writer_
private