HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
arg_mapper< Context > Struct Template Reference

#include <core.h>

Public Types

using char_type = typename Context::char_type
 

Public Member Functions

FMT_CONSTEXPR FMT_INLINE auto map (signed char val) -> int
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned char val) -> unsigned
 
FMT_CONSTEXPR FMT_INLINE auto map (short val) -> int
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned short val) -> unsigned
 
FMT_CONSTEXPR FMT_INLINE auto map (int val) -> int
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned val) -> unsigned
 
FMT_CONSTEXPR FMT_INLINE auto map (long val) -> long_type
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned long val) -> ulong_type
 
FMT_CONSTEXPR FMT_INLINE auto map (long long val) -> long long
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned long long val) -> unsigned long long
 
FMT_CONSTEXPR FMT_INLINE auto map (int128_t val) -> int128_t
 
FMT_CONSTEXPR FMT_INLINE auto map (uint128_t val) -> uint128_t
 
FMT_CONSTEXPR FMT_INLINE auto map (bool val) -> bool
 
template<typename T , FMT_ENABLE_IF(is_char< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (T val) -> char_type
 
FMT_CONSTEXPR FMT_INLINE auto map (float val) -> float
 
FMT_CONSTEXPR FMT_INLINE auto map (double val) -> double
 
FMT_CONSTEXPR FMT_INLINE auto map (long double val) -> long double
 
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) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> basic_string_view< char_type >
 
template<typename T , FMT_ENABLE_IF(std::is_constructible< basic_string_view< char_type >, T >::value &&!is_string< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> basic_string_view< char_type >
 
template<typename T , FMT_ENABLE_IF(std::is_constructible< std_string_view< char_type >, T >::value &&!std::is_constructible< basic_string_view< char_type >, T >::value &&!is_string< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> basic_string_view< char_type >
 
FMT_CONSTEXPR FMT_INLINE auto map (const signed char *val) -> const char *
 
FMT_CONSTEXPR FMT_INLINE auto map (const unsigned char *val) -> const char *
 
FMT_CONSTEXPR FMT_INLINE auto map (signed char *val) -> const char *
 
FMT_CONSTEXPR FMT_INLINE auto map (unsigned char *val) -> const char *
 
FMT_CONSTEXPR FMT_INLINE auto map (void *val) -> const void *
 
FMT_CONSTEXPR FMT_INLINE auto map (const void *val) -> const void *
 
FMT_CONSTEXPR FMT_INLINE auto map (std::nullptr_t val) -> const void *
 
template<typename T >
FMT_CONSTEXPR auto map (T) -> enable_if_t< std::is_pointer< T >::value, int >
 
template<typename T , std::size_t N>
FMT_CONSTEXPR FMT_INLINE auto map (const T(&values)[N]) -> const T(&)[N]
 
template<typename T , FMT_ENABLE_IF(std::is_enum< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> decltype(std::declval< arg_mapper >().map(static_cast< typename std::underlying_type< T >::type >(val)))
 
template<typename T , FMT_ENABLE_IF(!is_string< T >::value &&!is_char< T >::value &&(has_formatter< T, Context >::value||has_fallback_formatter< T, char_type >::value)) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &val) -> const T &
 
template<typename T , FMT_ENABLE_IF(is_named_arg< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto map (const T &named_arg) -> decltype(std::declval< arg_mapper >().map(named_arg.value))
 
auto map (...) -> unformattable
 

Detailed Description

template<typename Context>
struct arg_mapper< Context >

Definition at line 1213 of file core.h.

Member Typedef Documentation

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

Definition at line 1214 of file core.h.

Member Function Documentation

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

Definition at line 1216 of file core.h.

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

Definition at line 1217 of file core.h.

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

Definition at line 1220 of file core.h.

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

Definition at line 1221 of file core.h.

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

Definition at line 1224 of file core.h.

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

Definition at line 1225 of file core.h.

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

Definition at line 1226 of file core.h.

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

Definition at line 1227 of file core.h.

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

Definition at line 1230 of file core.h.

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

Definition at line 1231 of file core.h.

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

Definition at line 1235 of file core.h.

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

Definition at line 1236 of file core.h.

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

Definition at line 1237 of file core.h.

template<typename Context >
template<typename T , FMT_ENABLE_IF(is_char< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto arg_mapper< Context >::map ( T  val) -> char_type
inline

Definition at line 1240 of file core.h.

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

Definition at line 1247 of file core.h.

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

Definition at line 1248 of file core.h.

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

Definition at line 1249 of file core.h.

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

Definition at line 1253 of file core.h.

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

Definition at line 1256 of file core.h.

template<typename Context >
template<typename T , FMT_ENABLE_IF(is_string< T >::value) >
FMT_CONSTEXPR FMT_INLINE auto arg_mapper< Context >::map ( const T val) -> basic_string_view<char_type>
inline

Definition at line 1260 of file core.h.

template<typename Context >
template<typename T , FMT_ENABLE_IF(std::is_constructible< basic_string_view< char_type >, T >::value &&!is_string< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto arg_mapper< Context >::map ( const T val) -> basic_string_view<char_type>
inline

Definition at line 1271 of file core.h.

template<typename Context >
template<typename T , FMT_ENABLE_IF(std::is_constructible< std_string_view< char_type >, T >::value &&!std::is_constructible< basic_string_view< char_type >, T >::value &&!is_string< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto arg_mapper< Context >::map ( const T val) -> basic_string_view<char_type>
inline

Definition at line 1282 of file core.h.

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

Definition at line 1286 of file core.h.

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

Definition at line 1290 of file core.h.

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

Definition at line 1294 of file core.h.

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

Definition at line 1298 of file core.h.

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

Definition at line 1303 of file core.h.

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

Definition at line 1304 of file core.h.

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

Definition at line 1307 of file core.h.

template<typename Context >
template<typename T >
FMT_CONSTEXPR auto arg_mapper< Context >::map ( T  ) -> enable_if_t<std::is_pointer<T>::value, int>
inline

Definition at line 1314 of file core.h.

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

Definition at line 1324 of file core.h.

template<typename Context >
template<typename T , FMT_ENABLE_IF(std::is_enum< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, char_type >::value) >
FMT_CONSTEXPR FMT_INLINE auto arg_mapper< Context >::map ( const T val) -> decltype(std::declval<arg_mapper>().map( static_cast<typename std::underlying_type<T>::type>(val)))
inline

Definition at line 1332 of file core.h.

template<typename Context >
template<typename T , FMT_ENABLE_IF(!is_string< T >::value &&!is_char< T >::value &&(has_formatter< T, Context >::value||has_fallback_formatter< T, char_type >::value)) >
FMT_CONSTEXPR FMT_INLINE auto arg_mapper< Context >::map ( const T val) -> const T&
inline

Definition at line 1341 of file core.h.

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

Definition at line 1346 of file core.h.

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

Definition at line 1351 of file core.h.


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