SoPlex Documentation
Loading...
Searching...
No Matches
int_writer< OutputIt, Char, UInt > Struct Template Reference

#include <format.h>

Public Types

enum  { sep_size = 1 }
 
using iterator
 

Public Member Functions

string_view get_prefix () const
 
template<typename Int >
 int_writer (OutputIt output, locale_ref loc, Int value, const basic_format_specs< Char > &s)
 
void on_dec ()
 
void on_hex ()
 
void on_bin ()
 
void on_oct ()
 
void on_num ()
 
void on_chr ()
 
FMT_NORETURN void on_error ()
 

Public Attributes

OutputIt out
 
locale_ref locale
 
const basic_format_specs< Char > & specs
 
UInt abs_value
 
char prefix [4]
 
unsigned prefix_size
 

Detailed Description

template<typename OutputIt, typename Char, typename UInt>
struct detail::int_writer< OutputIt, Char, UInt >

Definition at line 1584 of file format.h.

Member Typedef Documentation

◆ iterator

template<typename OutputIt , typename Char , typename UInt >
using iterator
Initial value:
typename std::remove_reference< T >::type remove_reference_t
Definition core.h:264

Definition at line 1592 of file format.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename OutputIt , typename Char , typename UInt >
anonymous enum
Enumerator
sep_size 

Definition at line 1662 of file format.h.

Constructor & Destructor Documentation

◆ int_writer()

template<typename OutputIt , typename Char , typename UInt >
template<typename Int >
int_writer ( OutputIt output,
locale_ref loc,
Int value,
const basic_format_specs< Char > & s )

Member Function Documentation

◆ get_prefix()

template<typename OutputIt , typename Char , typename UInt >
string_view get_prefix ( ) const

Definition at line 1595 of file format.h.

◆ on_bin()

template<typename OutputIt , typename Char , typename UInt >
void on_bin ( )

◆ on_chr()

template<typename OutputIt , typename Char , typename UInt >
void on_chr ( )

Definition at line 1711 of file format.h.

◆ on_dec()

template<typename OutputIt , typename Char , typename UInt >
void on_dec ( )

Definition at line 1616 of file format.h.

References detail::count_digits(), and detail::write_int().

◆ on_error()

template<typename OutputIt , typename Char , typename UInt >
FMT_NORETURN void on_error ( )

Definition at line 1713 of file format.h.

References FMT_THROW.

◆ on_hex()

template<typename OutputIt , typename Char , typename UInt >
void on_hex ( )

◆ on_num()

template<typename OutputIt , typename Char , typename UInt >
void on_num ( )

◆ on_oct()

template<typename OutputIt , typename Char , typename UInt >
void on_oct ( )

Member Data Documentation

◆ abs_value

template<typename OutputIt , typename Char , typename UInt >
UInt abs_value

Definition at line 1588 of file format.h.

◆ locale

template<typename OutputIt , typename Char , typename UInt >
locale_ref locale

Definition at line 1586 of file format.h.

◆ out

template<typename OutputIt , typename Char , typename UInt >
OutputIt out

◆ prefix

template<typename OutputIt , typename Char , typename UInt >
char prefix[4]

Definition at line 1589 of file format.h.

◆ prefix_size

template<typename OutputIt , typename Char , typename UInt >
unsigned prefix_size

Definition at line 1590 of file format.h.

◆ specs

template<typename OutputIt , typename Char , typename UInt >
const basic_format_specs<Char>& specs

Definition at line 1587 of file format.h.