Scippy

SoPlex

Sequential object-oriented simPlex

basic_format_context< OutputIt, Char > Class Template Reference

#include <core.h>

Public Types

using char_type = Char
 
using iterator = OutputIt
 
using format_arg = basic_format_arg< basic_format_context >
 
using parse_context_type = basic_format_parse_context< Char >
 
template<typename T >
using formatter_type = formatter< T, char_type >
 

Public Member Functions

 basic_format_context (const basic_format_context &)=delete
 
void operator= (const basic_format_context &)=delete
 
 basic_format_context (OutputIt out, basic_format_args< basic_format_context > ctx_args, detail::locale_ref loc=detail::locale_ref())
 
format_arg arg (int id) const
 
format_arg arg (basic_string_view< char_type > name)
 
int arg_id (basic_string_view< char_type > name)
 
const basic_format_args< basic_format_context > & args () const
 
detail::error_handler error_handler ()
 
void on_error (const char *message)
 
iterator out ()
 
void advance_to (iterator it)
 
detail::locale_ref locale ()
 

Private Attributes

OutputIt out_
 
basic_format_args< basic_format_contextargs_
 
detail::locale_ref loc_
 

Detailed Description

template<typename OutputIt, typename Char>
class basic_format_context< OutputIt, Char >

Definition at line 1490 of file core.h.

Member Typedef Documentation

◆ char_type

using char_type = Char

The character type for the output.

Definition at line 1493 of file core.h.

◆ format_arg

Definition at line 1502 of file core.h.

◆ formatter_type

Definition at line 1504 of file core.h.

◆ iterator

using iterator = OutputIt

Definition at line 1501 of file core.h.

◆ parse_context_type

Definition at line 1503 of file core.h.

Constructor & Destructor Documentation

◆ basic_format_context() [1/2]

basic_format_context ( const basic_format_context< OutputIt, Char > &  )
delete

◆ basic_format_context() [2/2]

basic_format_context ( OutputIt  out,
basic_format_args< basic_format_context< OutputIt, Char > >  ctx_args,
detail::locale_ref  loc = detail::locale_ref() 
)

Constructs a basic_format_context object. References to the arguments are stored in the object so make sure they have appropriate lifetimes.

Definition at line 1512 of file core.h.

Member Function Documentation

◆ advance_to()

void advance_to ( iterator  it)

Definition at line 1529 of file core.h.

◆ arg() [1/2]

format_arg arg ( int  id) const

Definition at line 1517 of file core.h.

References basic_format_args< Context >::get().

◆ arg() [2/2]

Definition at line 1518 of file core.h.

References basic_format_args< Context >::get().

◆ arg_id()

int arg_id ( basic_string_view< char_type name)

Definition at line 1519 of file core.h.

References basic_format_args< Context >::get_id().

◆ args()

const basic_format_args<basic_format_context>& args ( ) const

Definition at line 1520 of file core.h.

◆ error_handler()

detail::error_handler error_handler ( )

Definition at line 1522 of file core.h.

◆ locale()

detail::locale_ref locale ( )

Definition at line 1533 of file core.h.

◆ on_error()

void on_error ( const char *  message)

Definition at line 1523 of file core.h.

◆ operator=()

void operator= ( const basic_format_context< OutputIt, Char > &  )
delete

◆ out()

Member Data Documentation

◆ args_

Definition at line 1497 of file core.h.

◆ loc_

detail::locale_ref loc_
private

Definition at line 1498 of file core.h.

◆ out_

OutputIt out_
private

Definition at line 1496 of file core.h.