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::width_checker< ErrorHandler > Class Template Reference

Public Member Functions

FMT_CONSTEXPR width_checker (ErrorHandler &eh)
template<typename T, FMT_ENABLE_IF(is_integer< T >::value)>
FMT_CONSTEXPR uint64_t operator() (T value)
template<typename T, FMT_ENABLE_IF(!is_integer< T >::value)>
FMT_CONSTEXPR uint64_t operator() (T)

Private Attributes

ErrorHandler & handler_

Constructor & Destructor Documentation

◆ width_checker()

template<typename ErrorHandler>
FMT_CONSTEXPR internal::width_checker< ErrorHandler >::width_checker ( ErrorHandler & eh)
inlineexplicit
18255: handler_(eh) {}
Definition duckdb.cpp:18253

Member Function Documentation

◆ operator()() [1/2]

template<typename ErrorHandler>
template<typename T, FMT_ENABLE_IF(is_integer< T >::value)>
FMT_CONSTEXPR uint64_t internal::width_checker< ErrorHandler >::operator() ( T value)
inline
18258 {
18259 if (is_negative(value)) handler_.on_error("negative width");
18260 return static_cast<uint64_t>(value);
18261 }

◆ operator()() [2/2]

template<typename ErrorHandler>
template<typename T, FMT_ENABLE_IF(!is_integer< T >::value)>
FMT_CONSTEXPR uint64_t internal::width_checker< ErrorHandler >::operator() ( T )
inline
18264 {
18265 handler_.on_error("width is not integer");
18266 return 0;
18267 }

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