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

Public Member Functions

FMT_CONSTEXPR precision_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

◆ precision_checker()

template<typename ErrorHandler>
FMT_CONSTEXPR internal::precision_checker< ErrorHandler >::precision_checker ( ErrorHandler & eh)
inlineexplicit
18275: handler_(eh) {}
Definition duckdb.cpp:18273

Member Function Documentation

◆ operator()() [1/2]

template<typename ErrorHandler>
template<typename T, FMT_ENABLE_IF(is_integer< T >::value)>
FMT_CONSTEXPR uint64_t internal::precision_checker< ErrorHandler >::operator() ( T value)
inline
18278 {
18279 if (is_negative(value)) handler_.on_error("negative precision");
18280 return static_cast<uint64_t>(value);
18281 }

◆ operator()() [2/2]

template<typename ErrorHandler>
template<typename T, FMT_ENABLE_IF(!is_integer< T >::value)>
FMT_CONSTEXPR uint64_t internal::precision_checker< ErrorHandler >::operator() ( T )
inline
18284 {
18285 handler_.on_error("precision is not integer");
18286 return 0;
18287 }

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