Rosetta
|
#include <printf.h>
Public Types | |
using | char_type = Char |
using | iterator = OutputIt |
using | format_arg = basic_format_arg< basic_printf_context > |
using | parse_context_type = basic_printf_parse_context< Char > |
template<typename T > | |
using | formatter_type = printf_formatter< T > |
Public Member Functions | |
basic_printf_context (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context > args) | |
OutputIt | out () |
void | advance_to (OutputIt it) |
detail::locale_ref | locale () |
format_arg | arg (int id) const |
parse_context_type & | parse_context () |
FMT_CONSTEXPR void | on_error (const char *message) |
template<typename ArgFormatter = printf_arg_formatter<OutputIt, Char>> | |
OutputIt | format () |
Private Types | |
using | format_specs = basic_format_specs< char_type > |
Private Member Functions | |
format_arg | get_arg (int arg_index=-1) |
int | parse_header (const Char *&it, const Char *end, format_specs &specs) |
Static Private Member Functions | |
static void | parse_flags (format_specs &specs, const Char *&it, const Char *end) |
Private Attributes | |
OutputIt | out_ |
basic_format_args< basic_printf_context > | args_ |
parse_context_type | parse_ctx_ |
This template formats data and writes the output through an output iterator.
using basic_printf_context< OutputIt, Char >::char_type = Char |
The character type for the output.
using basic_printf_context< OutputIt, Char >::format_arg = basic_format_arg<basic_printf_context> |
|
private |
using basic_printf_context< OutputIt, Char >::formatter_type = printf_formatter<T> |
using basic_printf_context< OutputIt, Char >::iterator = OutputIt |
using basic_printf_context< OutputIt, Char >::parse_context_type = basic_printf_parse_context<Char> |
|
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
|
inline |
References basic_printf_context< OutputIt, Char >::out_.
|
inline |
OutputIt basic_printf_context< OutputIt, Char >::format |
Formats stored arguments and writes the output to the range.
References basic_format_specs< Char >::align, basic_format_specs< Char >::alt, arg(), kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, detail::convert_arg(), erraser_util::copy(), detail::cstring_type, end, basic_format_specs< Char >::fill, detail::find(), FMT_THROW, detail::get_arg(), align::left, align::numeric, erraser_single_res_analysis::out, detail::parse_nonnegative_int(), basic_format_specs< Char >::precision, align::right, basic::options::OptionKeys::cutoutdomain::start, str(), predPRE::t, detail::to_unsigned(), basic_format_specs< Char >::type, and visit_format_arg().
|
private |
References detail::get_arg().
|
inline |
|
inline |
|
inline |
References basic_printf_context< OutputIt, Char >::out_.
|
inline |
References basic_printf_context< OutputIt, Char >::parse_ctx_.
Referenced by printf_arg_formatter< OutputIt, Char >::operator()().
|
staticprivate |
|
private |
|
private |
Referenced by basic_printf_context< OutputIt, Char >::arg().
|
private |
|
private |