HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
printf_arg_formatter< Range > Class Template Reference

#include <printf.h>

+ Inheritance 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_type
format_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 198 of file printf.h.

Member Typedef Documentation

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

Definition at line 235 of file printf.h.

Constructor & Destructor Documentation

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 244 of file printf.h.

Member Function Documentation

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

Definition at line 252 of file printf.h.

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

Definition at line 276 of file printf.h.

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

Formats a null-terminated C string.

Definition at line 281 of file printf.h.

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

Formats a null-terminated wide C string.

Definition at line 292 of file printf.h.

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

Definition at line 302 of file printf.h.

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

Definition at line 306 of file printf.h.

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

Formats a pointer.

Definition at line 311 of file printf.h.

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 320 of file printf.h.


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