Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
internal::numeric_specs_checker< ErrorHandler > Class Template Reference

Public Member Functions

FMT_CONSTEXPR numeric_specs_checker (ErrorHandler &eh, internal::type arg_type)
FMT_CONSTEXPR void require_numeric_argument ()
FMT_CONSTEXPR void check_sign ()
FMT_CONSTEXPR void check_precision ()

Private Attributes

ErrorHandler & error_handler_
internal::type arg_type_

Constructor & Destructor Documentation

◆ numeric_specs_checker()

template<typename ErrorHandler>
FMT_CONSTEXPR internal::numeric_specs_checker< ErrorHandler >::numeric_specs_checker ( ErrorHandler & eh,
internal::type arg_type )
inline
18335 : error_handler_(eh), arg_type_(arg_type) {}
Definition duckdb.cpp:18332

Member Function Documentation

◆ require_numeric_argument()

template<typename ErrorHandler>
FMT_CONSTEXPR void internal::numeric_specs_checker< ErrorHandler >::require_numeric_argument ( )
inline
18337 {
18338 if (!is_arithmetic_type(arg_type_))
18339 error_handler_.on_error("format specifier requires numeric argument");
18340 }

◆ check_sign()

template<typename ErrorHandler>
FMT_CONSTEXPR void internal::numeric_specs_checker< ErrorHandler >::check_sign ( )
inline
18342 {
18343 require_numeric_argument();
18344 if (is_integral_type(arg_type_) && arg_type_ != int_type &&
18345 arg_type_ != long_long_type && arg_type_ != internal::char_type) {
18346 error_handler_.on_error("format specifier requires signed argument");
18347 }
18348 }

◆ check_precision()

template<typename ErrorHandler>
FMT_CONSTEXPR void internal::numeric_specs_checker< ErrorHandler >::check_precision ( )
inline
18350 {
18351 if (is_integral_type(arg_type_) || arg_type_ == internal::pointer_type)
18352 error_handler_.on_error("precision not allowed for this argument type");
18353 }

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