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

Classes

struct  null_handler

Public Member Functions

template<typename ParseContext>
auto parse (ParseContext &ctx) -> decltype(ctx.begin())
template<typename T, typename FormatContext>
auto format (const T &val, FormatContext &ctx) -> decltype(ctx.out())

Private Member Functions

template<typename Context>
void handle_specs (Context &ctx)

Private Attributes

internal::dynamic_format_specs< Char > specs_
const Char * format_str_

Member Function Documentation

◆ parse()

template<typename Char = char>
template<typename ParseContext>
auto dynamic_formatter< Char >::parse ( ParseContext & ctx) ->decltype(ctx.begin())
inline
19207 {
19208 format_str_ = ctx.begin();
19209 // Checks are deferred to formatting time when the argument type is known.
19211 return parse_format_specs(ctx.begin(), ctx.end(), handler);
19212 }
Definition duckdb.cpp:19195

◆ format()

template<typename Char = char>
template<typename T, typename FormatContext>
auto dynamic_formatter< Char >::format ( const T & val,
FormatContext & ctx )->decltype(ctx.out())
inline
19215 {
19216 handle_specs(ctx);
19218 null_handler(),
19220 checker.on_align(specs_.align);
19221 switch (specs_.sign) {
19222 case sign::none:
19223 break;
19224 case sign::plus:
19225 checker.on_plus();
19226 break;
19227 case sign::minus:
19228 checker.on_minus();
19229 break;
19230 case sign::space:
19231 checker.on_space();
19232 break;
19233 }
19234 if (specs_.alt) checker.on_hash();
19235 if (specs_.precision >= 0) checker.end_precision();
19237 typename FormatContext::char_type>;
19238 visit_format_arg(arg_formatter<range>(ctx, nullptr, &specs_),
19240 return ctx.out();
19241 }
FMT_CONSTEXPR auto visit_format_arg(Visitor &&vis, const basic_format_arg< Context > &arg) -> decltype(vis(0))
Definition duckdb.cpp:15830
Definition duckdb.cpp:19197

◆ handle_specs()

template<typename Char = char>
template<typename Context>
void dynamic_formatter< Char >::handle_specs ( Context & ctx)
inlineprivate
19244 {
19246 specs_.width, specs_.width_ref, ctx);
19248 specs_.precision, specs_.precision_ref, ctx);
19249 }

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