Flow123d  master-f44eb46
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
fmt::BasicFormatter< CharType, ArgFormatter > Class Template Reference

#include <format.h>

Inheritance diagram for fmt::BasicFormatter< CharType, ArgFormatter >:
Inheritance graph
[legend]
Collaboration diagram for fmt::BasicFormatter< CharType, ArgFormatter >:
Collaboration graph
[legend]

Public Types

typedef CharType Char
 

Public Member Functions

 BasicFormatter (const ArgList &args, BasicWriter< Char > &w)
 
BasicWriter< Char > & writer ()
 
void format (BasicCStringRef< Char > format_str)
 
const Charformat (const Char *&format_str, const internal::Arg &arg)
 

Private Member Functions

 FMT_DISALLOW_COPY_AND_ASSIGN (BasicFormatter)
 
internal::Arg get_arg (BasicStringRef< Char > arg_name, const char *&error)
 
internal::Arg parse_arg_index (const Char *&s)
 
internal::Arg parse_arg_name (const Char *&s)
 
- Private Member Functions inherited from fmt::internal::FormatterBase
const ArgListargs () const
 
 FormatterBase (const ArgList &args)
 
Arg next_arg (const char *&error)
 
Arg get_arg (unsigned arg_index, const char *&error)
 
bool check_no_auto_index (const char *&error)
 
template<typename Char >
void write (BasicWriter< Char > &w, const Char *start, const Char *end)
 

Private Attributes

BasicWriter< Char > & writer_
 
internal::ArgMap< Charmap_
 

Detailed Description

template<typename CharType, typename ArgFormatter>
class fmt::BasicFormatter< CharType, ArgFormatter >

This template formats data and writes the output to a writer.

Definition at line 1999 of file format.h.

Member Typedef Documentation

◆ Char

template<typename CharType , typename ArgFormatter >
typedef CharType fmt::BasicFormatter< CharType, ArgFormatter >::Char

The character type for the output.

Definition at line 2002 of file format.h.

Constructor & Destructor Documentation

◆ BasicFormatter()

template<typename CharType , typename ArgFormatter >
fmt::BasicFormatter< CharType, ArgFormatter >::BasicFormatter ( const ArgList args,
BasicWriter< Char > &  w 
)
inline

\rst Constructs a BasicFormatter object. References to the arguments and the writer are stored in the formatter object so make sure they have appropriate lifetimes. \endrst

Definition at line 2030 of file format.h.

Member Function Documentation

◆ FMT_DISALLOW_COPY_AND_ASSIGN()

template<typename CharType , typename ArgFormatter >
fmt::BasicFormatter< CharType, ArgFormatter >::FMT_DISALLOW_COPY_AND_ASSIGN ( BasicFormatter< CharType, ArgFormatter )
private

◆ format() [1/2]

template<typename Char , typename AF >
void fmt::BasicFormatter< Char, AF >::format ( BasicCStringRef< Char format_str)

Formats stored arguments and writes the output to the writer.

Definition at line 3701 of file format.h.

Here is the caller graph for this function:

◆ format() [2/2]

template<typename Char , typename ArgFormatter >
const Char * fmt::BasicFormatter< Char, ArgFormatter >::format ( const Char *&  format_str,
const internal::Arg arg 
)

Definition at line 3531 of file format.h.

◆ get_arg()

template<typename Char , typename AF >
internal::Arg fmt::BasicFormatter< Char, AF >::get_arg ( BasicStringRef< Char arg_name,
const char *&  error 
)
inlineprivate

Definition at line 3491 of file format.h.

◆ parse_arg_index()

template<typename Char , typename AF >
internal::Arg fmt::BasicFormatter< Char, AF >::parse_arg_index ( const Char *&  s)
inlineprivate

Definition at line 3504 of file format.h.

◆ parse_arg_name()

template<typename Char , typename AF >
internal::Arg fmt::BasicFormatter< Char, AF >::parse_arg_name ( const Char *&  s)
inlineprivate

Definition at line 3516 of file format.h.

◆ writer()

template<typename CharType , typename ArgFormatter >
BasicWriter<Char>& fmt::BasicFormatter< CharType, ArgFormatter >::writer ( )
inline

Returns a reference to the writer associated with this formatter.

Definition at line 2034 of file format.h.

Member Data Documentation

◆ map_

template<typename CharType , typename ArgFormatter >
internal::ArgMap<Char> fmt::BasicFormatter< CharType, ArgFormatter >::map_
private

Definition at line 2006 of file format.h.

◆ writer_

template<typename CharType , typename ArgFormatter >
BasicWriter<Char>& fmt::BasicFormatter< CharType, ArgFormatter >::writer_
private

Definition at line 2005 of file format.h.


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