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

Public Types

using char_type = typename Context::char_type
 

Public Member Functions

FMT_CONSTEXPR value (int val=0)
 
FMT_CONSTEXPR value (unsigned val)
 
 value (long long val)
 
 value (unsigned long long val)
 
 value (int128_t val)
 
 value (uint128_t val)
 
 value (float val)
 
 value (double val)
 
 value (long double val)
 
 value (bool val)
 
 value (char_type val)
 
 value (const char_type *val)
 
 value (basic_string_view< char_type > val)
 
 value (const void *val)
 
template<typename T >
 value (const T &val)
 
 value (const named_arg_base< char_type > &val)
 

Public Attributes

union { 
 
   int   int_value 
 
   unsigned   uint_value 
 
   long long   long_long_value 
 
   unsigned long long   ulong_long_value 
 
   int128_t   int128_value 
 
   uint128_t   uint128_value 
 
   bool   bool_value 
 
   char_type   char_value 
 
   float   float_value 
 
   double   double_value 
 
   long double   long_double_value 
 
   const void *   pointer 
 
   string_value< char_type >   string 
 
   custom_value< Context >   custom 
 
   const named_arg_base< char_type > *   named_arg 
 
};  
 

Static Private Member Functions

template<typename T , typename Formatter >
static void format_custom_arg (const void *arg, basic_format_parse_context< char_type > &parse_ctx, Context &ctx)
 

Constructor & Destructor Documentation

◆ value() [1/16]

template<typename Context >
FMT_CONSTEXPR internal::value< Context >::value ( int  val = 0)
inline
15605: int_value(val) {}

◆ value() [2/16]

template<typename Context >
FMT_CONSTEXPR internal::value< Context >::value ( unsigned  val)
inline
15606: uint_value(val) {}

◆ value() [3/16]

template<typename Context >
internal::value< Context >::value ( long long  val)
inline
15607: long_long_value(val) {}

◆ value() [4/16]

template<typename Context >
internal::value< Context >::value ( unsigned long long  val)
inline
15608: ulong_long_value(val) {}

◆ value() [5/16]

template<typename Context >
internal::value< Context >::value ( int128_t  val)
inline
15609: int128_value(val) {}

◆ value() [6/16]

template<typename Context >
internal::value< Context >::value ( uint128_t  val)
inline
15610: uint128_value(val) {}

◆ value() [7/16]

template<typename Context >
internal::value< Context >::value ( float  val)
inline
15611: float_value(val) {}

◆ value() [8/16]

template<typename Context >
internal::value< Context >::value ( double  val)
inline
15612: double_value(val) {}

◆ value() [9/16]

template<typename Context >
internal::value< Context >::value ( long double  val)
inline
15613: long_double_value(val) {}

◆ value() [10/16]

template<typename Context >
internal::value< Context >::value ( bool  val)
inline
15614: bool_value(val) {}

◆ value() [11/16]

template<typename Context >
internal::value< Context >::value ( char_type  val)
inline
15615: char_value(val) {}

◆ value() [12/16]

template<typename Context >
internal::value< Context >::value ( const char_type *  val)
inline
15616{ string.data = val; }

◆ value() [13/16]

template<typename Context >
internal::value< Context >::value ( basic_string_view< char_type >  val)
inline
15617 {
15618 string.data = val.data();
15619 string.size = val.size();
15620 }
FMT_CONSTEXPR size_t size() const
Definition duckdb.cpp:15149
FMT_CONSTEXPR const Char * data() const
Definition duckdb.cpp:15146

◆ value() [14/16]

template<typename Context >
internal::value< Context >::value ( const void *  val)
inline
15621: pointer(val) {}

◆ value() [15/16]

template<typename Context >
template<typename T >
internal::value< Context >::value ( const T &  val)
inline
15623 {
15624 custom.value = &val;
15625 // Get the formatter type through the context to allow different contexts
15626 // have different extension points, e.g. `formatter<T>` for `format` and
15627 // `printf_formatter<T>` for `printf`.
15628 custom.format = format_custom_arg<
15629 T, conditional_t<has_formatter<T, Context>::value,
15630 typename Context::template formatter_type<T>,
15631 fallback_formatter<T, char_type>>>;
15632 }

◆ value() [16/16]

template<typename Context >
internal::value< Context >::value ( const named_arg_base< char_type > &  val)
inline
15634{ named_arg = &val; }

Member Function Documentation

◆ format_custom_arg()

template<typename Context >
template<typename T , typename Formatter >
static void internal::value< Context >::format_custom_arg ( const void *  arg,
basic_format_parse_context< char_type > &  parse_ctx,
Context &  ctx 
)
inlinestaticprivate
15641 {
15642 Formatter f;
15643 parse_ctx.advance_to(f.parse(parse_ctx));
15644 ctx.advance_to(f.format(*static_cast<const T*>(arg), ctx));
15645 }
FMT_CONSTEXPR void advance_to(iterator it)
Definition duckdb.cpp:15330

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