Agora  1.2.0
Agora project
fmt::v8::basic_format_context< OutputIt, Char > Class Template Reference

#include <core.h>

Collaboration diagram for fmt::v8::basic_format_context< OutputIt, Char >:

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

Private Attributes

OutputIt out_
 
basic_format_args< basic_format_contextargs_
 
detail::locale_ref loc_
 

Member Typedef Documentation

◆ char_type

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

The character type for the output.

◆ format_arg

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

◆ formatter_type

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

◆ iterator

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

◆ parse_context_type

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

Constructor & Destructor Documentation

◆ basic_format_context() [1/3]

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

◆ basic_format_context() [2/3]

template<typename OutputIt , typename Char >
fmt::v8::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 fmt::v8::basic_format_context< OutputIt, Char >::basic_format_context ( OutputIt  out,
basic_format_args< basic_format_context< OutputIt, Char > >  ctx_args,
detail::locale_ref  loc = detail::locale_ref() 
)
inlineconstexpr

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

Member Function Documentation

◆ advance_to()

template<typename OutputIt , typename Char >
void fmt::v8::basic_format_context< OutputIt, Char >::advance_to ( iterator  it)
inline
Here is the caller graph for this function:

◆ arg() [1/2]

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

◆ arg() [2/2]

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

◆ arg_id()

template<typename OutputIt , typename Char >
auto fmt::v8::basic_format_context< OutputIt, Char >::arg_id ( basic_string_view< char_type name) -> int
inline
Here is the caller graph for this function:

◆ args()

template<typename OutputIt , typename Char >
auto fmt::v8::basic_format_context< OutputIt, Char >::args ( ) const -> const basic_format_args<basic_format_context>&
inline
Here is the caller graph for this function:

◆ error_handler()

template<typename OutputIt , typename Char >
auto fmt::v8::basic_format_context< OutputIt, Char >::error_handler ( ) -> detail::error_handler
inline
Here is the caller graph for this function:

◆ locale()

template<typename OutputIt , typename Char >
auto fmt::v8::basic_format_context< OutputIt, Char >::locale ( ) -> detail::locale_ref
inline
Here is the caller graph for this function:

◆ on_error()

template<typename OutputIt , typename Char >
void fmt::v8::basic_format_context< OutputIt, Char >::on_error ( const char *  message)
inline
Here is the caller graph for this function:

◆ operator=()

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

◆ out()

template<typename OutputIt , typename Char >
auto fmt::v8::basic_format_context< OutputIt, Char >::out ( ) -> iterator
inline
Here is the caller graph for this function:

Member Data Documentation

◆ args_

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

◆ loc_

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

◆ out_

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

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