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::specs_handler< ParseContext, Context > Class Template Reference
Inheritance diagram for internal::specs_handler< ParseContext, Context >:
Collaboration diagram for internal::specs_handler< ParseContext, Context >:

Public Types

using char_type = typename Context::char_type

Public Member Functions

FMT_CONSTEXPR specs_handler (basic_format_specs< char_type > &specs, ParseContext &parse_ctx, Context &ctx)
template<typename Id>
FMT_CONSTEXPR void on_dynamic_width (Id arg_id)
template<typename Id>
FMT_CONSTEXPR void on_dynamic_precision (Id arg_id)
void on_error (std::string message)
Public Member Functions inherited from internal::specs_setter< Context::char_type >
FMT_CONSTEXPR specs_setter (basic_format_specs< Context::char_type > &specs)
FMT_CONSTEXPR void on_align (align_t align)
FMT_CONSTEXPR void on_fill (Context::char_type fill)
FMT_CONSTEXPR void on_plus ()
FMT_CONSTEXPR void on_minus ()
FMT_CONSTEXPR void on_space ()
FMT_CONSTEXPR void on_comma ()
FMT_CONSTEXPR void on_underscore ()
FMT_CONSTEXPR void on_single_quote ()
FMT_CONSTEXPR void on_thousands (char sep)
FMT_CONSTEXPR void on_hash ()
FMT_CONSTEXPR void on_zero ()
FMT_CONSTEXPR void on_width (int width)
FMT_CONSTEXPR void on_precision (int precision)
FMT_CONSTEXPR void end_precision ()
FMT_CONSTEXPR void on_type (Context::char_type type)

Private Types

using format_arg = typename Context::format_arg

Private Member Functions

FMT_CONSTEXPR format_arg get_arg (auto_id)
FMT_CONSTEXPR format_arg get_arg (int arg_id)
FMT_CONSTEXPR format_arg get_arg (basic_string_view< char_type > arg_id)

Private Attributes

ParseContext & parse_context_
Context & context_

Additional Inherited Members

Protected Attributes inherited from internal::specs_setter< Context::char_type >
basic_format_specs< Context::char_type > & specs_

Constructor & Destructor Documentation

◆ specs_handler()

template<typename ParseContext, typename Context>
FMT_CONSTEXPR internal::specs_handler< ParseContext, Context >::specs_handler ( basic_format_specs< char_type > & specs,
ParseContext & parse_ctx,
Context & ctx )
inline
18431 : specs_setter<char_type>(specs),
18432 parse_context_(parse_ctx),
18433 context_(ctx) {}
Definition duckdb.cpp:18425

Member Function Documentation

◆ on_dynamic_width()

template<typename ParseContext, typename Context>
template<typename Id>
FMT_CONSTEXPR void internal::specs_handler< ParseContext, Context >::on_dynamic_width ( Id arg_id)
inline
18435 {
18436 this->specs_.width = get_dynamic_spec<width_checker>(
18437 get_arg(arg_id), context_.error_handler());
18438 }

◆ on_dynamic_precision()

template<typename ParseContext, typename Context>
template<typename Id>
FMT_CONSTEXPR void internal::specs_handler< ParseContext, Context >::on_dynamic_precision ( Id arg_id)
inline
18440 {
18441 this->specs_.precision = get_dynamic_spec<precision_checker>(
18442 get_arg(arg_id), context_.error_handler());
18443 }

◆ on_error()

template<typename ParseContext, typename Context>
void internal::specs_handler< ParseContext, Context >::on_error ( std::string message)
inline
18445{ context_.on_error(message); }

◆ get_arg() [1/3]

template<typename ParseContext, typename Context>
FMT_CONSTEXPR format_arg internal::specs_handler< ParseContext, Context >::get_arg ( auto_id )
inlineprivate
18451 {
18452 return internal::get_arg(context_, parse_context_.next_arg_id());
18453 }

◆ get_arg() [2/3]

template<typename ParseContext, typename Context>
FMT_CONSTEXPR format_arg internal::specs_handler< ParseContext, Context >::get_arg ( int arg_id)
inlineprivate
18455 {
18456 parse_context_.check_arg_id(arg_id);
18457 return internal::get_arg(context_, arg_id);
18458 }

◆ get_arg() [3/3]

template<typename ParseContext, typename Context>
FMT_CONSTEXPR format_arg internal::specs_handler< ParseContext, Context >::get_arg ( basic_string_view< char_type > arg_id)
inlineprivate
18460 {
18461 parse_context_.check_arg_id(arg_id);
18462 return context_.arg(arg_id);
18463 }

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