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::printf_width_handler< Char > Class Template Reference
Collaboration diagram for internal::printf_width_handler< Char >:

Public Member Functions

 printf_width_handler (format_specs &specs)
template<typename T, FMT_ENABLE_IF(is_integral< T >::value)>
unsigned operator() (T value)
template<typename T, FMT_ENABLE_IF(!is_integral< T >::value)>
unsigned operator() (T)

Private Types

using format_specs = basic_format_specs<Char>

Private Attributes

format_specs & specs_

Constructor & Destructor Documentation

◆ printf_width_handler()

template<typename Char>
internal::printf_width_handler< Char >::printf_width_handler ( format_specs & specs)
inlineexplicit
71311: specs_(specs) {}
Definition duckdb.cpp:71304

Member Function Documentation

◆ operator()() [1/2]

template<typename Char>
template<typename T, FMT_ENABLE_IF(is_integral< T >::value)>
unsigned internal::printf_width_handler< Char >::operator() ( T value)
inline
71314 {
71315 auto width = static_cast<uint32_or_64_or_128_t<T>>(value);
71317 specs_.align = align::left;
71318 width = -width;
71319 }
71320 unsigned int_max = max_value<int>();
71321 if (width > int_max) FMT_THROW(duckdb::InvalidInputException("number is too big"));
71322 return static_cast<unsigned>(width);
71323 }

◆ operator()() [2/2]

template<typename Char>
template<typename T, FMT_ENABLE_IF(!is_integral< T >::value)>
unsigned internal::printf_width_handler< Char >::operator() ( T )
inline
71326 {
71327 FMT_THROW(duckdb::InvalidInputException("width is not integer"));
71328 return 0;
71329 }

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