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

#include <printf.h>

Public Types

using char_type = Char
 
template<typename T >
using formatter_type = printf_formatter< T >
 
using parse_context_type = basic_format_parse_context< Char >
 

Public Member Functions

void advance_to (detail::buffer_appender< Char >)
 
auto arg (int id) const -> basic_format_arg< basic_printf_context >
 
 basic_printf_context (detail::buffer_appender< Char > out, basic_format_args< basic_printf_context > args)
 
auto locale () -> detail::locale_ref
 
FMT_CONSTEXPR void on_error (const char *message)
 
auto out () -> detail::buffer_appender< Char >
 

Private Attributes

basic_format_args< basic_printf_contextargs_
 
detail::buffer_appender< Char > out_
 

Detailed Description

template<typename Char>
class basic_printf_context< Char >

Definition at line 23 of file printf.h.

Member Typedef Documentation

◆ char_type

template<typename Char >
using basic_printf_context< Char >::char_type = Char

Definition at line 33 of file printf.h.

◆ formatter_type

template<typename Char >
template<typename T >
using basic_printf_context< Char >::formatter_type = printf_formatter<T>

Definition at line 35 of file printf.h.

◆ parse_context_type

template<typename Char >
using basic_printf_context< Char >::parse_context_type = basic_format_parse_context<Char>

Definition at line 34 of file printf.h.

Constructor & Destructor Documentation

◆ basic_printf_context()

template<typename Char >
basic_printf_context< Char >::basic_printf_context ( detail::buffer_appender< Char >  out,
basic_format_args< basic_printf_context< Char > >  args 
)
inline

\rst Constructs a printf_context object. References to the arguments are stored in the context object so make sure they have appropriate lifetimes. \endrst

Definition at line 43 of file printf.h.

Member Function Documentation

◆ advance_to()

template<typename Char >
void basic_printf_context< Char >::advance_to ( detail::buffer_appender< Char >  )
inline

Definition at line 48 of file printf.h.

◆ arg()

template<typename Char >
auto basic_printf_context< Char >::arg ( int  id) const -> basic_format_arg<basic_printf_context>
inline

Definition at line 52 of file printf.h.

◆ locale()

template<typename Char >
auto basic_printf_context< Char >::locale ( ) -> detail::locale_ref
inline

Definition at line 50 of file printf.h.

◆ on_error()

template<typename Char >
FMT_CONSTEXPR void basic_printf_context< Char >::on_error ( const char *  message)
inline

Definition at line 56 of file printf.h.

◆ out()

template<typename Char >
auto basic_printf_context< Char >::out ( ) -> detail::buffer_appender<Char>
inline

Definition at line 47 of file printf.h.

Member Data Documentation

◆ args_

template<typename Char >
basic_format_args<basic_printf_context> basic_printf_context< Char >::args_
private

Definition at line 26 of file printf.h.

◆ out_

template<typename Char >
detail::buffer_appender<Char> basic_printf_context< Char >::out_
private

Definition at line 25 of file printf.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