SoPlex Documentation
Loading...
Searching...
No Matches
basic_writer< Range >::int_writer< Int, Specs > Struct Template Reference

Classes

struct  bin_writer
 
struct  dec_writer
 
struct  hex_writer
 
struct  num_writer
 

Public Types

enum  { sep_size = 1 }
 
using unsigned_type = uint32_or_64_or_128_t<Int>
 

Public Member Functions

string_view get_prefix () const
 
 int_writer (basic_writer< Range > &w, Int value, const Specs &s)
 
void on_dec ()
 
void on_hex ()
 
void on_bin ()
 
void on_oct ()
 
void on_num ()
 
FMT_NORETURN void on_error ()
 

Public Attributes

basic_writer< Range > & writer
 
const Specs & specs
 
unsigned_type abs_value
 
char prefix [4]
 
unsigned prefix_size
 

Detailed Description

template<typename Range>
template<typename Int, typename Specs>
struct internal::basic_writer< Range >::int_writer< Int, Specs >

Definition at line 1447 of file format.h.

Member Typedef Documentation

◆ unsigned_type

template<typename Range >
template<typename Int , typename Specs >
using unsigned_type = uint32_or_64_or_128_t<Int>

Definition at line 1448 of file format.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Range >
template<typename Int , typename Specs >
anonymous enum
Enumerator
sep_size 

Definition at line 1538 of file format.h.

Constructor & Destructor Documentation

◆ int_writer()

template<typename Range >
template<typename Int , typename Specs >
int_writer ( basic_writer< Range > & w,
Int value,
const Specs & s )

Definition at line 1458 of file format.h.

References internal::is_negative(), sign::minus, sign::none, and sign::plus.

Member Function Documentation

◆ get_prefix()

template<typename Range >
template<typename Int , typename Specs >
string_view get_prefix ( ) const

Definition at line 1456 of file format.h.

◆ on_bin()

template<typename Range >
template<typename Int , typename Specs >
void on_bin ( )

Definition at line 1517 of file format.h.

References basic_writer< Range >::write_int().

◆ on_dec()

template<typename Range >
template<typename Int , typename Specs >
void on_dec ( )

Definition at line 1482 of file format.h.

References internal::count_digits(), and basic_writer< Range >::write_int().

◆ on_error()

template<typename Range >
template<typename Int , typename Specs >
FMT_NORETURN void on_error ( )

Definition at line 1589 of file format.h.

References FMT_THROW.

◆ on_hex()

template<typename Range >
template<typename Int , typename Specs >
void on_hex ( )

Definition at line 1498 of file format.h.

References basic_writer< Range >::write_int().

◆ on_num()

template<typename Range >
template<typename Int , typename Specs >
void on_num ( )

◆ on_oct()

template<typename Range >
template<typename Int , typename Specs >
void on_oct ( )

Definition at line 1527 of file format.h.

References basic_writer< Range >::write_int().

Member Data Documentation

◆ abs_value

template<typename Range >
template<typename Int , typename Specs >
unsigned_type abs_value

◆ prefix

template<typename Range >
template<typename Int , typename Specs >
char prefix[4]

Definition at line 1453 of file format.h.

◆ prefix_size

template<typename Range >
template<typename Int , typename Specs >
unsigned prefix_size

Definition at line 1454 of file format.h.

◆ specs

template<typename Range >
template<typename Int , typename Specs >
const Specs& specs

◆ writer

template<typename Range >
template<typename Int , typename Specs >
basic_writer<Range>& writer

Definition at line 1450 of file format.h.