Classes | Public Types | Public Member Functions | List of all members
detail::arg_mapper< Context > Struct Template Reference

#include <core.h>

Classes

struct  formattable
 

Public Types

using char_type = typename Context::char_type
 

Public Member Functions

template<typename T , FMT_ENABLE_IF(!formattable< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto do_map (T &) -> unformattable
 
template<typename T , FMT_ENABLE_IF(formattable< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto do_map (T &val) -> T &
 
auto map (...) -> unformattable
 
FMT_CONSTEXPR FMT_INLINE auto map (bool val) -> bool
 
FMT_CONSTEXPR FMT_INLINE auto map (char_type *val) -> const char_type *
 
FMT_CONSTEXPR FMT_INLINE auto map (const char_type *val) -> const char_type *
 
template<typename T , FMT_ENABLE_IF(is_string< T >::value &&!std::is_pointer< T >::value && !std::is_same< char_type, char_t< T >>::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &) -> unformattable_char
 
template<typename T , FMT_ENABLE_IF( std::is_pointer< T >::value||std::is_member_pointer< T >::value|| std::is_function< typename std::remove_pointer< T >::type >::value||(std::is_array< T >::value && !std::is_convertible< T, const char_type * >::value)) >
FMT_CONSTEXPR auto map (const T &) -> unformattable_pointer
 
template<typename T , FMT_ENABLE_IF(is_named_arg< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &named_arg) -> decltype(FMT_DECLTYPE_THIS map(named_arg.value))
 
template<typename T , FMT_ENABLE_IF(is_string< T >::value &&!std::is_pointer< T >::value && std::is_same< char_type, char_t< T >>::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> basic_string_view< char_type >
 
template<typename T , typename U = format_as_t<T>, FMT_ENABLE_IF(std::is_arithmetic< U >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> decltype(FMT_DECLTYPE_THIS map(U()))
 
template<typename T , std::size_t N, FMT_ENABLE_IF(!std::is_same< T, wchar_t >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T(&values)[N]) -> const T(&)[N]
 
FMT_CONSTEXPR FMT_INLINE auto map (const void *val) -> const void *
 
FMT_CONSTEXPR FMT_INLINE auto map (double val) -> double
 
FMT_CONSTEXPR FMT_INLINE auto map (float val) -> float
 
FMT_CONSTEXPR FMT_INLINE auto map (int val) -> int
 
FMT_CONSTEXPR FMT_INLINE auto map (int128_opt val) -> int128_opt
 
FMT_CONSTEXPR FMT_INLINE auto map (long double val) -> long double
 
FMT_CONSTEXPR FMT_INLINE auto map (long long val) -> long long
 
FMT_CONSTEXPR FMT_INLINE auto map (long val) -> long_type
 
FMT_CONSTEXPR FMT_INLINE auto map (short val) -> int
 
FMT_CONSTEXPR FMT_INLINE auto map (signed char val) -> int
 
FMT_CONSTEXPR FMT_INLINE auto map (std::nullptr_t val) -> const void *
 
template<typename T , typename U = remove_const_t<T>, FMT_ENABLE_IF((std::is_class< U >::value||std::is_enum< U >::value|| std::is_union< U >::value) && !is_string< U >::value &&!is_char< U >::value && !is_named_arg< U >::value && !std::is_arithmetic< format_as_t< U >>::value) >
FMT_CONSTEXPR FMT_INLINE auto map (T &val) -> decltype(FMT_DECLTYPE_THIS do_map(val))
 
template<typename T , FMT_ENABLE_IF(std::is_same< T, char >::value|| std::is_same< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (T val) -> char_type
 
template<typename T , enable_if_t<(std::is_same< T, wchar_t >::value||std::is_same< T, char16_t >::value||std::is_same< T, char32_t >::value) &&!std::is_same< T, char_type >::value, int > = 0>
FMT_CONSTEXPR FMT_INLINE auto map (T) -> unformattable_char
 
FMT_CONSTEXPR FMT_INLINE auto map (uint128_opt val) -> uint128_opt
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned char val) -> unsigned
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned long long val) -> unsigned long long
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned long val) -> ulong_type
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned short val) -> unsigned
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned val) -> unsigned
 
FMT_CONSTEXPR FMT_INLINE auto map (void *val) -> const void *
 

Detailed Description

template<typename Context>
struct detail::arg_mapper< Context >

Definition at line 1355 of file core.h.

Member Typedef Documentation

◆ char_type

template<typename Context >
using detail::arg_mapper< Context >::char_type = typename Context::char_type

Definition at line 1356 of file core.h.

Member Function Documentation

◆ do_map() [1/2]

template<typename Context >
template<typename T , FMT_ENABLE_IF(!formattable< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::do_map ( T &  ) -> unformattable
inline

Definition at line 1473 of file core.h.

◆ do_map() [2/2]

template<typename Context >
template<typename T , FMT_ENABLE_IF(formattable< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::do_map ( T &  val) -> T&
inline

Definition at line 1469 of file core.h.

◆ map() [1/31]

template<typename Context >
auto detail::arg_mapper< Context >::map (   ...) -> unformattable
inline

Definition at line 1494 of file core.h.

◆ map() [2/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( bool  val) -> bool
inline

Definition at line 1383 of file core.h.

◆ map() [3/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( char_type val) -> const char_type*
inline

Definition at line 1408 of file core.h.

◆ map() [4/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const char_type val) -> const char_type*
inline

Definition at line 1411 of file core.h.

◆ map() [5/31]

template<typename Context >
template<typename T , FMT_ENABLE_IF(is_string< T >::value &&!std::is_pointer< T >::value && !std::is_same< char_type, char_t< T >>::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const T &  ) -> unformattable_char
inline

Definition at line 1424 of file core.h.

◆ map() [6/31]

template<typename Context >
template<typename T , FMT_ENABLE_IF( std::is_pointer< T >::value||std::is_member_pointer< T >::value|| std::is_function< typename std::remove_pointer< T >::type >::value||(std::is_array< T >::value && !std::is_convertible< T, const char_type * >::value)) >
FMT_CONSTEXPR auto detail::arg_mapper< Context >::map ( const T &  ) -> unformattable_pointer
inline

Definition at line 1445 of file core.h.

◆ map() [7/31]

template<typename Context >
template<typename T , FMT_ENABLE_IF(is_named_arg< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const T &  named_arg) -> decltype(FMT_DECLTYPE_THIS map(named_arg.value))
inline

Definition at line 1489 of file core.h.

◆ map() [8/31]

template<typename Context >
template<typename T , FMT_ENABLE_IF(is_string< T >::value &&!std::is_pointer< T >::value && std::is_same< char_type, char_t< T >>::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const T &  val) -> basic_string_view<char_type>
inline

Definition at line 1417 of file core.h.

◆ map() [9/31]

template<typename Context >
template<typename T , typename U = format_as_t<T>, FMT_ENABLE_IF(std::is_arithmetic< U >::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const T &  val) -> decltype(FMT_DECLTYPE_THIS map(U()))
inline

Definition at line 1458 of file core.h.

◆ map() [10/31]

template<typename Context >
template<typename T , std::size_t N, FMT_ENABLE_IF(!std::is_same< T, wchar_t >::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const T(&)  values[N]) -> const T (&)[N]
inline

Definition at line 1451 of file core.h.

◆ map() [11/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( const void *  val) -> const void*
inline

Definition at line 1429 of file core.h.

◆ map() [12/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( double  val) -> double
inline

Definition at line 1403 of file core.h.

◆ map() [13/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( float  val) -> float
inline

Definition at line 1402 of file core.h.

◆ map() [14/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( int  val) -> int
inline

Definition at line 1366 of file core.h.

◆ map() [15/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( int128_opt  val) -> int128_opt
inline

Definition at line 1377 of file core.h.

◆ map() [16/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( long double  val) -> long double
inline

Definition at line 1404 of file core.h.

◆ map() [17/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( long long  val) -> long long
inline

Definition at line 1372 of file core.h.

◆ map() [18/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( long  val) -> long_type
inline

Definition at line 1368 of file core.h.

◆ map() [19/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( short  val) -> int
inline

Definition at line 1362 of file core.h.

◆ map() [20/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( signed char  val) -> int
inline

Definition at line 1358 of file core.h.

◆ map() [21/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( std::nullptr_t  val) -> const void*
inline

Definition at line 1432 of file core.h.

◆ map() [22/31]

template<typename Context >
template<typename T , typename U = remove_const_t<T>, FMT_ENABLE_IF((std::is_class< U >::value||std::is_enum< U >::value|| std::is_union< U >::value) && !is_string< U >::value &&!is_char< U >::value && !is_named_arg< U >::value && !std::is_arithmetic< format_as_t< U >>::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( T &  val) -> decltype(FMT_DECLTYPE_THIS do_map(val))
inline

Definition at line 1483 of file core.h.

◆ map() [23/31]

template<typename Context >
template<typename T , FMT_ENABLE_IF(std::is_same< T, char >::value|| std::is_same< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( val) -> char_type
inline

Definition at line 1387 of file core.h.

◆ map() [24/31]

template<typename Context >
template<typename T , enable_if_t<(std::is_same< T, wchar_t >::value||std::is_same< T, char16_t >::value||std::is_same< T, char32_t >::value) &&!std::is_same< T, char_type >::value, int > = 0>
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( ) -> unformattable_char
inline

Definition at line 1398 of file core.h.

◆ map() [25/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( uint128_opt  val) -> uint128_opt
inline

Definition at line 1380 of file core.h.

◆ map() [26/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( unsigned char  val) -> unsigned
inline

Definition at line 1359 of file core.h.

◆ map() [27/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( unsigned long long  val) -> unsigned long long
inline

Definition at line 1373 of file core.h.

◆ map() [28/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( unsigned long  val) -> ulong_type
inline

Definition at line 1369 of file core.h.

◆ map() [29/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( unsigned short  val) -> unsigned
inline

Definition at line 1363 of file core.h.

◆ map() [30/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( unsigned  val) -> unsigned
inline

Definition at line 1367 of file core.h.

◆ map() [31/31]

template<typename Context >
FMT_CONSTEXPR FMT_INLINE auto detail::arg_mapper< Context >::map ( void *  val) -> const void*
inline

Definition at line 1428 of file core.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51