Classes | Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
detail::arg_formatter_base< OutputIt, Char, ErrorHandler > Class Template Reference

#include <format.h>

Classes

struct  char_spec_handler
 
struct  cstring_spec_handler
 

Public Types

using char_type = Char
 
using format_specs = basic_format_specs< Char >
 
using iterator = OutputIt
 

Public Member Functions

 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)
 

Protected Member Functions

iterator out ()
 
format_specsspecs ()
 
void write (bool value)
 
void write (const Char *value)
 

Private Types

using reserve_iterator = remove_reference_t< decltype(detail::reserve(std::declval< iterator & >(), 0))>
 

Private Member Functions

auto reserve (size_t n) -> decltype(detail::reserve(out_, n))
 
void write (char value)
 
template<typename Ch , FMT_ENABLE_IF(std::is_same< Ch, Char >::value) >
void write (Ch value)
 
void write (string_view value)
 
void write (wstring_view value)
 
template<typename Ch >
void write (const Ch *s, size_t size, const format_specs &specs)
 
template<typename Ch >
void write (basic_string_view< Ch > s, const format_specs &specs={})
 
template<typename T >
void write_int (T value, const format_specs &spec)
 
void write_pointer (const void *p)
 

Private Attributes

locale_ref locale_
 
iterator out_
 
format_specsspecs_
 

Detailed Description

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
class detail::arg_formatter_base< OutputIt, Char, ErrorHandler >

Definition at line 2120 of file format.h.

Member Typedef Documentation

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
using detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::char_type = Char

Definition at line 2123 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
using detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::format_specs = basic_format_specs<Char>

Definition at line 2124 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
using detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::iterator = OutputIt

Definition at line 2122 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
using detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::reserve_iterator = remove_reference_t<decltype( detail::reserve(std::declval<iterator&>(), 0))>
private

Definition at line 2138 of file format.h.

Constructor & Destructor Documentation

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::arg_formatter_base ( OutputIt  out,
format_specs s,
locale_ref  loc 
)
inline

Definition at line 2238 of file format.h.

Member Function Documentation

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( monostate  )
inline

Definition at line 2241 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
template<typename T , FMT_ENABLE_IF(is_integral< T >::value) >
FMT_INLINE iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( value)
inline

Definition at line 2247 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( Char  value)
inline

Definition at line 2255 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( bool  value)
inline

Definition at line 2261 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
template<typename T , FMT_ENABLE_IF(std::is_floating_point< T >::value) >
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( value)
inline

Definition at line 2268 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( const Char *  value)
inline

Definition at line 2277 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( basic_string_view< Char >  value)
inline

Definition at line 2283 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::operator() ( const void *  value)
inline

Definition at line 2293 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::out ( )
inlineprotected

Definition at line 2217 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
auto detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::reserve ( size_t  n) -> decltype(detail::reserve(out_, n))
inlineprivate

Definition at line 2133 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
format_specs* detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::specs ( )
inlineprotected

Definition at line 2218 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( char  value)
inlineprivate

Definition at line 2147 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
template<typename Ch , FMT_ENABLE_IF(std::is_same< Ch, Char >::value) >
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( Ch  value)
inlineprivate

Definition at line 2153 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( string_view  value)
inlineprivate

Definition at line 2157 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( wstring_view  value)
inlineprivate

Definition at line 2161 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
template<typename Ch >
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( const Ch *  s,
size_t  size,
const format_specs specs 
)
inlineprivate

Definition at line 2168 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
template<typename Ch >
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( basic_string_view< Ch >  s,
const format_specs specs = {} 
)
inlineprivate

Definition at line 2178 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( bool  value)
inlineprotected

Definition at line 2220 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write ( const Char *  value)
inlineprotected

Definition at line 2227 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
template<typename T >
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write_int ( value,
const format_specs spec 
)
inlineprivate

Definition at line 2140 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
void detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::write_pointer ( const void *  p)
inlineprivate

Definition at line 2182 of file format.h.

Member Data Documentation

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
locale_ref detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::locale_
private

Definition at line 2128 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
iterator detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::out_
private

Definition at line 2127 of file format.h.

template<typename OutputIt, typename Char, typename ErrorHandler = error_handler>
format_specs* detail::arg_formatter_base< OutputIt, Char, ErrorHandler >::specs_
private

Definition at line 2129 of file format.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:51