WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
printf_arg_formatter< Range > Class Template Reference

#include <printf.h>

Inheritance diagram for printf_arg_formatter< Range >:
Collaboration diagram for printf_arg_formatter< Range >:

Public Types

typedef base::format_specs format_specs
 
- Public Types inherited from internal::arg_formatter_base< Range >
typedef Range::value_type char_type
 
typedef basic_format_specs< char_typeformat_specs
 

Public Member Functions

 printf_arg_formatter (internal::basic_buffer< char_type > &buffer, format_specs &spec, context_type &ctx)
 
template<typename T >
std::enable_if< std::is_integral< T >::value, iterator >::type operator() (T value)
 
template<typename T >
std::enable_if< std::is_floating_point< T >::value, iterator >::type operator() (T value)
 
iterator operator() (const char *value)
 
iterator operator() (const wchar_t *value)
 
iterator operator() (basic_string_view< char_type > value)
 
iterator operator() (monostate value)
 
iterator operator() (const void *value)
 
iterator operator() (typename basic_format_arg< context_type >::handle handle)
 
- Public Member Functions inherited from internal::arg_formatter_base< Range >
 arg_formatter_base (Range r, format_specs *s, locale_ref loc)
 
iterator operator() (monostate)
 
template<typename T >
std::enable_if< std::is_integral< T >::value||std::is_same< T, char_type >::value, iterator >::type operator() (T value)
 
template<typename T >
std::enable_if< std::is_floating_point< T >::value, iterator >::type operator() (T value)
 
iterator operator() (const char_type *value)
 
iterator operator() (basic_string_view< char_type > value)
 
iterator operator() (const void *value)
 

Additional Inherited Members

- Public Attributes inherited from internal::arg_formatter_base< Range >
decltype(internal::declval< Range >().begin()) typedef iterator
 
- Protected Member Functions inherited from internal::arg_formatter_base< Range >
writer_typewriter ()
 
format_specsspec ()
 
iterator out ()
 
void write (bool value)
 
void write (const char_type *value)
 

Detailed Description

template<typename Range>
class printf_arg_formatter< Range >

The printf argument formatter.

Definition at line 330 of file printf.h.

Member Typedef Documentation

◆ format_specs

template<typename Range >
typedef base::format_specs printf_arg_formatter< Range >::format_specs

Definition at line 367 of file printf.h.

Constructor & Destructor Documentation

◆ printf_arg_formatter()

template<typename Range >
printf_arg_formatter< Range >::printf_arg_formatter ( internal::basic_buffer< char_type > &  buffer,
format_specs spec,
context_type ctx 
)
inline

Constructs an argument formatter object. buffer* is a reference to the output buffer and spec contains format specifier information for standard argument types.

Definition at line 376 of file printf.h.

Member Function Documentation

◆ operator()() [1/8]

template<typename Range >
template<typename T >
std::enable_if<std::is_integral<T>::value, iterator>::type printf_arg_formatter< Range >::operator() ( value)
inline

Definition at line 384 of file printf.h.

Here is the call graph for this function:

◆ operator()() [2/8]

template<typename Range >
template<typename T >
std::enable_if<std::is_floating_point<T>::value, iterator>::type printf_arg_formatter< Range >::operator() ( value)
inline

Definition at line 408 of file printf.h.

◆ operator()() [3/8]

template<typename Range >
iterator printf_arg_formatter< Range >::operator() ( const char *  value)
inline

Formats a null-terminated C string.

Definition at line 413 of file printf.h.

Here is the call graph for this function:

◆ operator()() [4/8]

template<typename Range >
iterator printf_arg_formatter< Range >::operator() ( const wchar_t *  value)
inline

Formats a null-terminated wide C string.

Definition at line 424 of file printf.h.

Here is the call graph for this function:

◆ operator()() [5/8]

template<typename Range >
iterator printf_arg_formatter< Range >::operator() ( basic_string_view< char_type value)
inline

Definition at line 434 of file printf.h.

◆ operator()() [6/8]

template<typename Range >
iterator printf_arg_formatter< Range >::operator() ( monostate  value)
inline

Definition at line 438 of file printf.h.

◆ operator()() [7/8]

template<typename Range >
iterator printf_arg_formatter< Range >::operator() ( const void *  value)
inline

Formats a pointer.

Definition at line 443 of file printf.h.

◆ operator()() [8/8]

template<typename Range >
iterator printf_arg_formatter< Range >::operator() ( typename basic_format_arg< context_type >::handle  handle)
inline

Formats an argument of a custom (user-defined) type.

Definition at line 452 of file printf.h.

Here is the call graph for this function:

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