Public Member Functions | Private Member Functions | Private Attributes | List of all members
internal::specs_checker< Handler > Class Template Reference

#include <format.h>

Inheritance diagram for internal::specs_checker< Handler >:

Public Member Functions

FMT_CONSTEXPR specs_checker (const Handler &handler, internal::type arg_type)
 
FMT_CONSTEXPR specs_checker (const specs_checker &other)
 
FMT_CONSTEXPR void on_align (alignment align)
 
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 end_precision ()
 

Private Member Functions

FMT_CONSTEXPR void require_numeric_argument ()
 
FMT_CONSTEXPR void check_sign ()
 

Private Attributes

internal::type arg_type_
 

Detailed Description

template<typename Handler>
class internal::specs_checker< Handler >

Definition at line 1591 of file format.h.

Constructor & Destructor Documentation

template<typename Handler>
FMT_CONSTEXPR internal::specs_checker< Handler >::specs_checker ( const Handler &  handler,
internal::type  arg_type 
)
inline

Definition at line 1593 of file format.h.

1594  : Handler(handler), arg_type_(arg_type) {}
internal::type arg_type_
Definition: format.h:1649
static msg_handler handler
Definition: qglobal.cpp:234
template<typename Handler>
FMT_CONSTEXPR internal::specs_checker< Handler >::specs_checker ( const specs_checker< Handler > &  other)
inline

Definition at line 1596 of file format.h.

1597  : Handler(other), arg_type_(other.arg_type_) {}
internal::type arg_type_
Definition: format.h:1649

Member Function Documentation

template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::check_sign ( )
inlineprivate

Definition at line 1641 of file format.h.

1641  {
1643  if (is_integral(arg_type_) && arg_type_ != int_type &&
1645  this->on_error("format specifier requires signed argument");
1646  }
1647  }
FMT_CONSTEXPR bool is_integral(type t)
Definition: core.h:540
FMT_CONSTEXPR void require_numeric_argument()
Definition: format.h:1636
internal::type arg_type_
Definition: format.h:1649
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::end_precision ( )
inline

Definition at line 1630 of file format.h.

1630  {
1632  this->on_error("precision not allowed for this argument type");
1633  }
FMT_CONSTEXPR bool is_integral(type t)
Definition: core.h:540
internal::type arg_type_
Definition: format.h:1649
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::on_align ( alignment  align)
inline

Definition at line 1599 of file format.h.

1599  {
1600  if (align == ALIGN_NUMERIC)
1602  Handler::on_align(align);
1603  }
FMT_CONSTEXPR void require_numeric_argument()
Definition: format.h:1636
static QCString align(DocHtmlCell *cell)
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::on_hash ( )
inline

Definition at line 1620 of file format.h.

1620  {
1622  Handler::on_hash();
1623  }
FMT_CONSTEXPR void require_numeric_argument()
Definition: format.h:1636
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::on_minus ( )
inline

Definition at line 1610 of file format.h.

1610  {
1611  check_sign();
1612  Handler::on_minus();
1613  }
FMT_CONSTEXPR void check_sign()
Definition: format.h:1641
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::on_plus ( )
inline

Definition at line 1605 of file format.h.

1605  {
1606  check_sign();
1607  Handler::on_plus();
1608  }
FMT_CONSTEXPR void check_sign()
Definition: format.h:1641
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::on_space ( )
inline

Definition at line 1615 of file format.h.

1615  {
1616  check_sign();
1617  Handler::on_space();
1618  }
FMT_CONSTEXPR void check_sign()
Definition: format.h:1641
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::on_zero ( )
inline

Definition at line 1625 of file format.h.

1625  {
1627  Handler::on_zero();
1628  }
FMT_CONSTEXPR void require_numeric_argument()
Definition: format.h:1636
template<typename Handler>
FMT_CONSTEXPR void internal::specs_checker< Handler >::require_numeric_argument ( )
inlineprivate

Definition at line 1636 of file format.h.

1636  {
1637  if (!is_arithmetic(arg_type_))
1638  this->on_error("format specifier requires numeric argument");
1639  }
FMT_CONSTEXPR bool is_arithmetic(type t)
Definition: core.h:545
internal::type arg_type_
Definition: format.h:1649

Member Data Documentation

template<typename Handler>
internal::type internal::specs_checker< Handler >::arg_type_
private

Definition at line 1649 of file format.h.


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