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

#include <format.h>

Inheritance diagram for internal::specs_handler< Context >:
internal::specs_setter< Context::char_type >

Public Types

typedef Context::char_type char_type
 

Public Member Functions

FMT_CONSTEXPR specs_handler (basic_format_specs< char_type > &specs, Context &ctx)
 
template<typename Id >
FMT_CONSTEXPR void on_dynamic_width (Id arg_id)
 
template<typename Id >
FMT_CONSTEXPR void on_dynamic_precision (Id arg_id)
 
void on_error (const char *message)
 
- Public Member Functions inherited from internal::specs_setter< Context::char_type >
FMT_CONSTEXPR specs_setter (basic_format_specs< Context::char_type > &specs)
 
FMT_CONSTEXPR specs_setter (const specs_setter &other)
 
FMT_CONSTEXPR void on_align (alignment align)
 
FMT_CONSTEXPR void on_fill (Context::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 (Context::char_type type)
 

Private Member Functions

FMT_CONSTEXPR basic_format_arg< Context > get_arg (auto_id)
 
template<typename Id >
FMT_CONSTEXPR basic_format_arg< Context > get_arg (Id arg_id)
 

Private Attributes

Context & context_
 

Additional Inherited Members

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

Detailed Description

template<typename Context>
class internal::specs_handler< Context >

Definition at line 1667 of file format.h.

Member Typedef Documentation

template<typename Context >
typedef Context::char_type internal::specs_handler< Context >::char_type

Definition at line 1669 of file format.h.

Constructor & Destructor Documentation

template<typename Context >
FMT_CONSTEXPR internal::specs_handler< Context >::specs_handler ( basic_format_specs< char_type > &  specs,
Context &  ctx 
)
inline

Definition at line 1671 of file format.h.

1673  : specs_setter<char_type>(specs), context_(ctx) {}

Member Function Documentation

template<typename Context >
FMT_CONSTEXPR basic_format_arg<Context> internal::specs_handler< Context >::get_arg ( auto_id  )
inlineprivate

Definition at line 1692 of file format.h.

1692  {
1693  return context_.next_arg();
1694  }
template<typename Context >
template<typename Id >
FMT_CONSTEXPR basic_format_arg<Context> internal::specs_handler< Context >::get_arg ( Id  arg_id)
inlineprivate

Definition at line 1697 of file format.h.

1697  {
1698  context_.parse_context().check_arg_id(arg_id);
1699  return context_.get_arg(arg_id);
1700  }
template<typename Context >
template<typename Id >
FMT_CONSTEXPR void internal::specs_handler< Context >::on_dynamic_precision ( Id  arg_id)
inline

Definition at line 1682 of file format.h.

1682  {
1683  set_dynamic_spec<precision_checker>(
1684  this->specs_.precision, get_arg(arg_id), context_.error_handler());
1685  }
basic_format_specs< Context::char_type > & specs_
Definition: format.h:1585
FMT_CONSTEXPR basic_format_arg< Context > get_arg(auto_id)
Definition: format.h:1692
template<typename Context >
template<typename Id >
FMT_CONSTEXPR void internal::specs_handler< Context >::on_dynamic_width ( Id  arg_id)
inline

Definition at line 1676 of file format.h.

1676  {
1677  set_dynamic_spec<width_checker>(
1678  this->specs_.width_, get_arg(arg_id), context_.error_handler());
1679  }
basic_format_specs< Context::char_type > & specs_
Definition: format.h:1585
FMT_CONSTEXPR basic_format_arg< Context > get_arg(auto_id)
Definition: format.h:1692
unsigned width_
Definition: format.h:1088
template<typename Context >
void internal::specs_handler< Context >::on_error ( const char *  message)
inline

Definition at line 1687 of file format.h.

1687  {
1688  context_.on_error(message);
1689  }

Member Data Documentation

template<typename Context >
Context& internal::specs_handler< Context >::context_
private

Definition at line 1702 of file format.h.


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