Public Types | Public Member Functions | Private Attributes | List of all members
basic_format_context< OutputIt, Char > Class Template Reference

#include <core.h>

Public Types

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

Public Member Functions

void advance_to (iterator it)
 
FMT_CONSTEXPR auto arg (basic_string_view< Char > name) -> format_arg
 
constexpr auto arg (int id) const -> format_arg
 
FMT_CONSTEXPR auto arg_id (basic_string_view< Char > name) -> int
 
auto args () const -> const format_args &
 
 basic_format_context (basic_format_context &&)=default
 
 basic_format_context (const basic_format_context &)=delete
 
constexpr basic_format_context (OutputIt out, format_args ctx_args, detail::locale_ref loc={})
 
FMT_CONSTEXPR auto error_handler () -> detail::error_handler
 
FMT_CONSTEXPR auto locale () -> detail::locale_ref
 
void on_error (const char *message)
 
void operator= (const basic_format_context &)=delete
 
FMT_CONSTEXPR auto out () -> iterator
 

Private Attributes

basic_format_args< basic_format_contextargs_
 
detail::locale_ref loc_
 
OutputIt out_
 

Detailed Description

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

Definition at line 1739 of file core.h.

Member Typedef Documentation

◆ char_type

template<typename OutputIt , typename Char >
using basic_format_context< OutputIt, Char >::char_type = Char

The character type for the output.

Definition at line 1753 of file core.h.

◆ format_arg

template<typename OutputIt , typename Char >
using basic_format_context< OutputIt, Char >::format_arg = basic_format_arg<basic_format_context>

Definition at line 1747 of file core.h.

◆ format_args

template<typename OutputIt , typename Char >
using basic_format_context< OutputIt, Char >::format_args = basic_format_args<basic_format_context>

Definition at line 1748 of file core.h.

◆ formatter_type

template<typename OutputIt , typename Char >
template<typename T >
using basic_format_context< OutputIt, Char >::formatter_type = formatter<T, Char>

Definition at line 1750 of file core.h.

◆ iterator

template<typename OutputIt , typename Char >
using basic_format_context< OutputIt, Char >::iterator = OutputIt

Definition at line 1746 of file core.h.

◆ parse_context_type

template<typename OutputIt , typename Char >
using basic_format_context< OutputIt, Char >::parse_context_type = basic_format_parse_context<Char>

Definition at line 1749 of file core.h.

Constructor & Destructor Documentation

◆ basic_format_context() [1/3]

template<typename OutputIt , typename Char >
basic_format_context< OutputIt, Char >::basic_format_context ( basic_format_context< OutputIt, Char > &&  )
default

◆ basic_format_context() [2/3]

template<typename OutputIt , typename Char >
basic_format_context< OutputIt, Char >::basic_format_context ( const basic_format_context< OutputIt, Char > &  )
delete

◆ basic_format_context() [3/3]

template<typename OutputIt , typename Char >
constexpr basic_format_context< OutputIt, Char >::basic_format_context ( OutputIt  out,
format_args  ctx_args,
detail::locale_ref  loc = {} 
)
inlineconstexpr

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 1762 of file core.h.

Member Function Documentation

◆ advance_to()

template<typename OutputIt , typename Char >
void basic_format_context< OutputIt, Char >::advance_to ( iterator  it)
inline

Definition at line 1783 of file core.h.

◆ arg() [1/2]

template<typename OutputIt , typename Char >
FMT_CONSTEXPR auto basic_format_context< OutputIt, Char >::arg ( basic_string_view< Char >  name) -> format_arg
inline

Definition at line 1767 of file core.h.

◆ arg() [2/2]

template<typename OutputIt , typename Char >
constexpr auto basic_format_context< OutputIt, Char >::arg ( int  id) const -> format_arg
inlineconstexpr

Definition at line 1766 of file core.h.

◆ arg_id()

template<typename OutputIt , typename Char >
FMT_CONSTEXPR auto basic_format_context< OutputIt, Char >::arg_id ( basic_string_view< Char >  name) -> int
inline

Definition at line 1770 of file core.h.

◆ args()

template<typename OutputIt , typename Char >
auto basic_format_context< OutputIt, Char >::args ( ) const -> const format_args&
inline

Definition at line 1773 of file core.h.

◆ error_handler()

template<typename OutputIt , typename Char >
FMT_CONSTEXPR auto basic_format_context< OutputIt, Char >::error_handler ( ) -> detail::error_handler
inline

Definition at line 1776 of file core.h.

◆ locale()

template<typename OutputIt , typename Char >
FMT_CONSTEXPR auto basic_format_context< OutputIt, Char >::locale ( ) -> detail::locale_ref
inline

Definition at line 1787 of file core.h.

◆ on_error()

template<typename OutputIt , typename Char >
void basic_format_context< OutputIt, Char >::on_error ( const char *  message)
inline

Definition at line 1777 of file core.h.

◆ operator=()

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

◆ out()

template<typename OutputIt , typename Char >
FMT_CONSTEXPR auto basic_format_context< OutputIt, Char >::out ( ) -> iterator
inline

Definition at line 1780 of file core.h.

Member Data Documentation

◆ args_

template<typename OutputIt , typename Char >
basic_format_args<basic_format_context> basic_format_context< OutputIt, Char >::args_
private

Definition at line 1742 of file core.h.

◆ loc_

template<typename OutputIt , typename Char >
detail::locale_ref basic_format_context< OutputIt, Char >::loc_
private

Definition at line 1743 of file core.h.

◆ out_

template<typename OutputIt , typename Char >
OutputIt basic_format_context< OutputIt, Char >::out_
private

Definition at line 1741 of file core.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50