Scippy

SoPlex

Sequential object-oriented simPlex

specs_handler< ParseContext, Context > Class Template Reference

#include <format.h>

Public Types

using char_type = typename Context::char_type
 

Public Member Functions

FMT_CONSTEXPR specs_handler (basic_format_specs< char_type > &specs, ParseContext &parse_ctx, Context &ctx)
 
template<typename Id >
FMT_CONSTEXPR void on_dynamic_width (Id arg_id)
 
template<typename Id >
FMT_CONSTEXPR void on_dynamic_precision (Id arg_id)
 
void on_error (const char *message)
 
- Public Member Functions inherited from specs_setter< Context::char_type >
FMT_CONSTEXPR specs_setter (basic_format_specs< Context::char_type > &specs)
 
FMT_CONSTEXPR specs_setter (const specs_setter &other)
 
FMT_CONSTEXPR void on_align (align_t align)
 
FMT_CONSTEXPR void on_fill (Context::char_type fill)
 
FMT_CONSTEXPR void on_plus ()
 
FMT_CONSTEXPR void on_minus ()
 
FMT_CONSTEXPR void on_space ()
 
FMT_CONSTEXPR void on_hash ()
 
FMT_CONSTEXPR void on_zero ()
 
FMT_CONSTEXPR void on_width (int width)
 
FMT_CONSTEXPR void on_precision (int precision)
 
FMT_CONSTEXPR void end_precision ()
 
FMT_CONSTEXPR void on_type (Context::char_type type)
 

Private Types

using format_arg = typename Context::format_arg
 

Private Member Functions

FMT_CONSTEXPR format_arg get_arg (auto_id)
 
FMT_CONSTEXPR format_arg get_arg (int arg_id)
 
FMT_CONSTEXPR format_arg get_arg (basic_string_view< char_type > arg_id)
 

Private Attributes

ParseContext & parse_context_
 
Context & context_
 

Additional Inherited Members

- Protected Attributes inherited from specs_setter< Context::char_type >
basic_format_specs< Context::char_type > & specs_
 

Detailed Description

template<typename ParseContext, typename Context>
class internal::specs_handler< ParseContext, Context >

Definition at line 2144 of file format.h.

Member Typedef Documentation

◆ char_type

using char_type = typename Context::char_type

Definition at line 2146 of file format.h.

◆ format_arg

using format_arg = typename Context::format_arg
private

Definition at line 2168 of file format.h.

Constructor & Destructor Documentation

◆ specs_handler()

FMT_CONSTEXPR specs_handler ( basic_format_specs< char_type > &  specs,
ParseContext &  parse_ctx,
Context &  ctx 
)

Definition at line 2148 of file format.h.

Member Function Documentation

◆ get_arg() [1/3]

FMT_CONSTEXPR format_arg get_arg ( auto_id  )
private

Definition at line 2170 of file format.h.

References internal::get_arg().

◆ get_arg() [2/3]

FMT_CONSTEXPR format_arg get_arg ( int  arg_id)
private

Definition at line 2174 of file format.h.

References internal::get_arg().

◆ get_arg() [3/3]

FMT_CONSTEXPR format_arg get_arg ( basic_string_view< char_type arg_id)
private

Definition at line 2179 of file format.h.

◆ on_dynamic_precision()

FMT_CONSTEXPR void on_dynamic_precision ( Id  arg_id)

Definition at line 2159 of file format.h.

References internal::get_arg(), and basic_format_specs< Char >::precision.

◆ on_dynamic_width()

FMT_CONSTEXPR void on_dynamic_width ( Id  arg_id)

Definition at line 2154 of file format.h.

References internal::get_arg(), and basic_format_specs< Char >::width.

◆ on_error()

void on_error ( const char *  message)

Definition at line 2164 of file format.h.

Member Data Documentation

◆ context_

Context& context_
private

Definition at line 2185 of file format.h.

◆ parse_context_

ParseContext& parse_context_
private

Definition at line 2184 of file format.h.