WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
basic_printf_context< OutputIt, Char, ArgFormatter > Class Template Reference

#include <printf.h>

Inheritance diagram for basic_printf_context< OutputIt, Char, ArgFormatter >:
Collaboration diagram for basic_printf_context< OutputIt, Char, ArgFormatter >:

Classes

struct  formatter_type
 

Public Types

typedef Char char_type
 
- Public Types inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
typedef OutputIt iterator
 

Public Member Functions

 basic_printf_context (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context > args)
 
void format ()
 
- Public Member Functions inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
basic_parse_context< char_type > & parse_context ()
 
basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > > args () const
 
basic_format_arg< basic_printf_context< OutputIt, Char, ArgFormatter > > arg (unsigned id) const
 
internal::error_handler error_handler ()
 
void on_error (const char *message)
 
iterator out ()
 
iterator begin ()
 
void advance_to (iterator it)
 
locale_ref locale ()
 

Additional Inherited Members

- Protected Types inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
typedef Char char_type
 
typedef basic_format_arg< basic_printf_context< OutputIt, Char, ArgFormatter > > format_arg
 
- Protected Member Functions inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char >
 context_base (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > > ctx_args, locale_ref loc=locale_ref())
 
format_arg do_get_arg (unsigned arg_id)
 
format_arg get_arg (unsigned arg_id)
 

Detailed Description

template<typename OutputIt, typename Char, typename ArgFormatter>
class basic_printf_context< OutputIt, Char, ArgFormatter >

This template formats data and writes the output to a writer.

Definition at line 336 of file printf.h.

Member Typedef Documentation

◆ char_type

template<typename OutputIt , typename Char , typename ArgFormatter >
typedef Char basic_printf_context< OutputIt, Char, ArgFormatter >::char_type

The character type for the output.

Definition at line 479 of file printf.h.

Constructor & Destructor Documentation

◆ basic_printf_context()

template<typename OutputIt , typename Char , typename ArgFormatter >
basic_printf_context< OutputIt, Char, ArgFormatter >::basic_printf_context ( OutputIt  out,
basic_string_view< char_type format_str,
basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > >  args 
)
inline

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

Definition at line 509 of file printf.h.

Here is the call graph for this function:

Member Function Documentation

◆ format()

template<typename OutputIt , typename Char , typename AF >
void basic_printf_context< OutputIt, Char, AF >::format ( )

Formats stored arguments and writes the output to the range.

Definition at line 596 of file printf.h.

Here is the call graph for this function:

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