BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR > Struct Template Reference

#include <bslfmt_format_imp.h>

Detailed Description

template<class t_OUT, class t_CHAR>
struct bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >

Component-private type acting as the visitor in a call to visit_format_arg .

See bslfmt_format_imp

Public Member Functions

 Format_Imp_Visitor (basic_format_parse_context< t_CHAR > &pc, basic_format_context< t_OUT, t_CHAR > &fc)
 
void operator() (bsl::monostate) const
 
void operator() (bool value) const
 
void operator() (t_CHAR value) const
 
void operator() (unsigned value) const
 
void operator() (long long value) const
 
void operator() (unsigned long long value) const
 
void operator() (float value) const
 
void operator() (double value) const
 
void operator() (long double value) const
 
void operator() (const t_CHAR *value) const
 
void operator() (const void *value) const
 
void operator() (int value) const
 
void operator() (bsl::basic_string_view< t_CHAR > value) const
 
void operator() (const handle &h) const
 

Constructor & Destructor Documentation

◆ Format_Imp_Visitor()

template<class t_OUT , class t_CHAR >
bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::Format_Imp_Visitor ( basic_format_parse_context< t_CHAR > &  pc,
basic_format_context< t_OUT, t_CHAR > &  fc 
)

Create an instance of this type referencing the specified pc and the specified fc for format strings and output iterators respectively.

Member Function Documentation

◆ operator()() [1/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( bool  value) const

Write a string representation of the specified x to the output iterator in d_format_context_p, formatted according to the parse string referenced by d_formatContext_p. This is done by constructing an appropriate formatter of a type corresponding to the argument type of the specified x, then call parse and format on that constructed formatter.

◆ operator()() [2/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( bsl::basic_string_view< t_CHAR >  value) const

◆ operator()() [3/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( bsl::monostate  ) const

Throw a format_error exception to indicate this overload should never get called.

◆ operator()() [4/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( const handle &  h) const

Write a string representation of type referenced by the specified h to the output iterator in d_format_context_p, formatted according to the parse string referenced by d_formatContext_p. This is done by delegating to the handle::format function.

◆ operator()() [5/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( const t_CHAR *  value) const

◆ operator()() [6/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( const void *  value) const

◆ operator()() [7/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( double  value) const

◆ operator()() [8/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( float  value) const

◆ operator()() [9/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( int  value) const

◆ operator()() [10/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( long double  value) const

◆ operator()() [11/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( long long  value) const

◆ operator()() [12/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( t_CHAR  value) const

◆ operator()() [13/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( unsigned long long  value) const

◆ operator()() [14/14]

template<class t_OUT , class t_CHAR >
void bslfmt::Format_Imp_Visitor< t_OUT, t_CHAR >::operator() ( unsigned  value) const

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