Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
internal::dynamic_specs_handler< ParseContext > Class Template Reference

#include <format.h>

Inheritance diagram for internal::dynamic_specs_handler< ParseContext >:
internal::specs_setter< ParseContext::char_type >

Public Types

typedef ParseContext::char_type char_type
 

Public Member Functions

FMT_CONSTEXPR dynamic_specs_handler (dynamic_format_specs< char_type > &specs, ParseContext &ctx)
 
FMT_CONSTEXPR dynamic_specs_handler (const dynamic_specs_handler &other)
 
template<typename Id >
FMT_CONSTEXPR void on_dynamic_width (Id arg_id)
 
template<typename Id >
FMT_CONSTEXPR void on_dynamic_precision (Id arg_id)
 
FMT_CONSTEXPR void on_error (const char *message)
 
- Public Member Functions inherited from internal::specs_setter< ParseContext::char_type >
FMT_CONSTEXPR specs_setter (basic_format_specs< ParseContext::char_type > &specs)
 
FMT_CONSTEXPR specs_setter (const specs_setter &other)
 
FMT_CONSTEXPR void on_align (alignment align)
 
FMT_CONSTEXPR void on_fill (ParseContext::char_type fill)
 
FMT_CONSTEXPR void on_plus ()
 
FMT_CONSTEXPR void on_minus ()
 
FMT_CONSTEXPR void on_space ()
 
FMT_CONSTEXPR void on_hash ()
 
FMT_CONSTEXPR void on_zero ()
 
FMT_CONSTEXPR void on_width (unsigned width)
 
FMT_CONSTEXPR void on_precision (unsigned precision)
 
FMT_CONSTEXPR void end_precision ()
 
FMT_CONSTEXPR void on_type (ParseContext::char_type type)
 

Private Types

typedef arg_ref< char_typearg_ref_type
 

Private Member Functions

template<typename Id >
FMT_CONSTEXPR arg_ref_type make_arg_ref (Id arg_id)
 
FMT_CONSTEXPR arg_ref_type make_arg_ref (auto_id)
 

Private Attributes

dynamic_format_specs< char_type > & specs_
 
ParseContext & context_
 

Additional Inherited Members

- Protected Attributes inherited from internal::specs_setter< ParseContext::char_type >
basic_format_specs< ParseContext::char_type > & specs_
 

Detailed Description

template<typename ParseContext>
class internal::dynamic_specs_handler< ParseContext >

Definition at line 1741 of file format.h.

Member Typedef Documentation

template<typename ParseContext>
typedef arg_ref<char_type> internal::dynamic_specs_handler< ParseContext >::arg_ref_type
private

Definition at line 1769 of file format.h.

template<typename ParseContext>
typedef ParseContext::char_type internal::dynamic_specs_handler< ParseContext >::char_type

Definition at line 1744 of file format.h.

Constructor & Destructor Documentation

template<typename ParseContext>
FMT_CONSTEXPR internal::dynamic_specs_handler< ParseContext >::dynamic_specs_handler ( dynamic_format_specs< char_type > &  specs,
ParseContext &  ctx 
)
inline

Definition at line 1746 of file format.h.

1748  : specs_setter<char_type>(specs), specs_(specs), context_(ctx) {}
dynamic_format_specs< char_type > & specs_
Definition: format.h:1781
template<typename ParseContext>
FMT_CONSTEXPR internal::dynamic_specs_handler< ParseContext >::dynamic_specs_handler ( const dynamic_specs_handler< ParseContext > &  other)
inline

Definition at line 1750 of file format.h.

1751  : specs_setter<char_type>(other),
1752  specs_(other.specs_), context_(other.context_) {}
dynamic_format_specs< char_type > & specs_
Definition: format.h:1781

Member Function Documentation

template<typename ParseContext>
template<typename Id >
FMT_CONSTEXPR arg_ref_type internal::dynamic_specs_handler< ParseContext >::make_arg_ref ( Id  arg_id)
inlineprivate

Definition at line 1772 of file format.h.

1772  {
1773  context_.check_arg_id(arg_id);
1774  return arg_ref_type(arg_id);
1775  }
arg_ref< char_type > arg_ref_type
Definition: format.h:1769
template<typename ParseContext>
FMT_CONSTEXPR arg_ref_type internal::dynamic_specs_handler< ParseContext >::make_arg_ref ( auto_id  )
inlineprivate

Definition at line 1777 of file format.h.

1777  {
1778  return arg_ref_type(context_.next_arg_id());
1779  }
arg_ref< char_type > arg_ref_type
Definition: format.h:1769
template<typename ParseContext>
template<typename Id >
FMT_CONSTEXPR void internal::dynamic_specs_handler< ParseContext >::on_dynamic_precision ( Id  arg_id)
inline

Definition at line 1760 of file format.h.

1760  {
1761  specs_.precision_ref = make_arg_ref(arg_id);
1762  }
dynamic_format_specs< char_type > & specs_
Definition: format.h:1781
FMT_CONSTEXPR arg_ref_type make_arg_ref(Id arg_id)
Definition: format.h:1772
arg_ref< Char > precision_ref
Definition: format.h:1735
template<typename ParseContext>
template<typename Id >
FMT_CONSTEXPR void internal::dynamic_specs_handler< ParseContext >::on_dynamic_width ( Id  arg_id)
inline

Definition at line 1755 of file format.h.

1755  {
1756  specs_.width_ref = make_arg_ref(arg_id);
1757  }
dynamic_format_specs< char_type > & specs_
Definition: format.h:1781
FMT_CONSTEXPR arg_ref_type make_arg_ref(Id arg_id)
Definition: format.h:1772
arg_ref< Char > width_ref
Definition: format.h:1734
template<typename ParseContext>
FMT_CONSTEXPR void internal::dynamic_specs_handler< ParseContext >::on_error ( const char *  message)
inline

Definition at line 1764 of file format.h.

1764  {
1765  context_.on_error(message);
1766  }

Member Data Documentation

template<typename ParseContext>
ParseContext& internal::dynamic_specs_handler< ParseContext >::context_
private

Definition at line 1782 of file format.h.

template<typename ParseContext>
dynamic_format_specs<char_type>& internal::dynamic_specs_handler< ParseContext >::specs_
private

Definition at line 1781 of file format.h.


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