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

#include <format.h>

Public Types

typedef Range::value_type char_type
 
typedef basic_format_specs
< char_type
format_specs
 

Public Member Functions

 basic_writer (Range out, internal::locale_ref loc=internal::locale_ref())
 
void write (int value)
 
void write (long value)
 
void write (long long value)
 
void write (unsigned value)
 
void write (unsigned long value)
 
void write (unsigned long long value)
 
template<typename T , typename FormatSpec , typename... FormatSpecs>
std::enable_if
< std::is_integral< T >::value,
void >::type 
write (T value, FormatSpec spec, FormatSpecs...specs)
 
void write (double value)
 
void write (long double value)
 
void write (char value)
 
void write (wchar_t value)
 
void write (string_view value)
 
void write (wstring_view value)
 
template<typename... FormatSpecs>
void write (basic_string_view< char_type > str, FormatSpecs...specs)
 
template<typename T >
std::enable_if< std::is_same
< T, void >::value >::type 
write (const T *p)
 

Public Attributes

decltype(internal::declval
< Range >().begin()) typedef 
iterator
 

Friends

template<typename Char >
class internal::arg_formatter_base
 

Detailed Description

template<typename Range>
class basic_writer< Range >

This template provides operations for formatting and writing data into a character range.

Examples:
SOP/SOP_BouncyAgent.C, and standalone/i3ddsmgen.C.

Definition at line 330 of file format.h.

Member Typedef Documentation

template<typename Range>
typedef Range::value_type basic_writer< Range >::char_type

Definition at line 2400 of file format.h.

template<typename Range>
typedef basic_format_specs<char_type> basic_writer< Range >::format_specs

Definition at line 2402 of file format.h.

Constructor & Destructor Documentation

template<typename Range>
basic_writer< Range >::basic_writer ( Range  out,
internal::locale_ref  loc = internal::locale_ref() 
)
inlineexplicit

Constructs a basic_writer object.

Definition at line 2696 of file format.h.

Member Function Documentation

template<typename Range>
void basic_writer< Range >::write ( int  value)
inline

Definition at line 2700 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( long  value)
inline

Definition at line 2701 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( long long  value)
inline

Definition at line 2702 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( unsigned  value)
inline

Definition at line 2704 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( unsigned long  value)
inline

Definition at line 2705 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( unsigned long long  value)
inline

Definition at line 2706 of file format.h.

template<typename Range>
template<typename T , typename FormatSpec , typename... FormatSpecs>
std::enable_if<std::is_integral<T>::value, void>::type basic_writer< Range >::write ( T  value,
FormatSpec  spec,
FormatSpecs...  specs 
)
inline

Formats value and writes it to the buffer.

Definition at line 2715 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( double  value)
inline

Definition at line 2721 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( long double  value)
inline

Formats value using the general format for floating-point numbers ('g') and writes it to the buffer.

Definition at line 2731 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( char  value)
inline

Writes a character to the buffer.

Definition at line 2736 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( wchar_t  value)
inline

Definition at line 2739 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( string_view  value)
inline

Writes value to the buffer.

Definition at line 2749 of file format.h.

template<typename Range>
void basic_writer< Range >::write ( wstring_view  value)
inline

Definition at line 2753 of file format.h.

template<typename Range>
template<typename... FormatSpecs>
void basic_writer< Range >::write ( basic_string_view< char_type str,
FormatSpecs...  specs 
)
inline

Definition at line 2760 of file format.h.

template<typename Range>
template<typename T >
std::enable_if<std::is_same<T, void>::value>::type basic_writer< Range >::write ( const T p)
inline

Definition at line 2766 of file format.h.

Friends And Related Function Documentation

template<typename Range>
template<typename Char >
friend class internal::arg_formatter_base
friend

Definition at line 2692 of file format.h.

Member Data Documentation

template<typename Range>
decltype(internal::declval<Range>().begin()) typedef basic_writer< Range >::iterator

Definition at line 2401 of file format.h.


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