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

Public Types

using char_type = Char
 
using iterator = OutputIt
 
using format_arg = basic_format_arg< basic_format_context >
 
template<typename T >
using formatter_type = formatter< T, char_type >
 

Public Member Functions

 basic_format_context (const basic_format_context &)=delete
 
void operator= (const basic_format_context &)=delete
 
 basic_format_context (OutputIt out, basic_format_args< basic_format_context > ctx_args, internal::locale_ref loc=internal::locale_ref())
 
format_arg arg (int id) const
 
format_arg arg (basic_string_view< char_type > name)
 
internal::error_handler error_handler ()
 
void on_error (std::string message)
 
iterator out ()
 
void advance_to (iterator it)
 
internal::locale_ref locale ()
 

Private Attributes

OutputIt out_
 
basic_format_args< basic_format_contextargs_
 
internal::arg_map< basic_format_contextmap_
 
internal::locale_ref loc_
 

Member Typedef Documentation

◆ char_type

template<typename OutputIt , typename Char >
using basic_format_context< OutputIt, Char >::char_type = Char

The character type for the output.

Constructor & Destructor Documentation

◆ basic_format_context()

template<typename OutputIt , typename Char >
basic_format_context< OutputIt, Char >::basic_format_context ( OutputIt  out,
basic_format_args< basic_format_context< OutputIt, Char > >  ctx_args,
internal::locale_ref  loc = internal::locale_ref() 
)
inline

Constructs a basic_format_context object. References to the arguments are stored in the object so make sure they have appropriate lifetimes.

15980 : out_(out), args_(ctx_args), loc_(loc) {}

Member Function Documentation

◆ arg() [1/2]

template<typename OutputIt , typename Char >
format_arg basic_format_context< OutputIt, Char >::arg ( int  id) const
inline
15982{ return args_.get(id); }
format_arg get(int index) const
Definition duckdb.cpp:16123

◆ arg() [2/2]

template<typename Range , typename Char >
basic_format_context< Range, Char >::format_arg basic_format_context< Range, Char >::arg ( basic_string_view< char_type name)
19257 {
19258 map_.init(args_);
19259 format_arg arg = map_.find(name);
19260 if (arg.type() == internal::none_type) this->on_error("Argument with name \"" + name.to_string() + "\" not found, did you mean to use it as a format specifier (e.g. {:" + name.to_string() + "}");
19261 return arg;
19262}

◆ error_handler()

template<typename OutputIt , typename Char >
internal::error_handler basic_format_context< OutputIt, Char >::error_handler ( )
inline
15988{ return {}; }

◆ on_error()

template<typename OutputIt , typename Char >
void basic_format_context< OutputIt, Char >::on_error ( std::string  message)
inline
15989{ error_handler().on_error(message); }

◆ out()

template<typename OutputIt , typename Char >
iterator basic_format_context< OutputIt, Char >::out ( )
inline
15992{ return out_; }

◆ advance_to()

template<typename OutputIt , typename Char >
void basic_format_context< OutputIt, Char >::advance_to ( iterator  it)
inline
15995{ out_ = it; }

◆ locale()

template<typename OutputIt , typename Char >
internal::locale_ref basic_format_context< OutputIt, Char >::locale ( )
inline
15997{ return loc_; }

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