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

#include <core.h>

Public Types

using char_type = typename Context::char_type
 

Public Member Functions

FMT_CONSTEXPR int map (signed char val)
 
FMT_CONSTEXPR unsigned map (unsigned char val)
 
FMT_CONSTEXPR int map (short val)
 
FMT_CONSTEXPR unsigned map (unsigned short val)
 
FMT_CONSTEXPR int map (int val)
 
FMT_CONSTEXPR unsigned map (unsigned val)
 
FMT_CONSTEXPR long_type map (long val)
 
FMT_CONSTEXPR ulong_type map (unsigned long val)
 
FMT_CONSTEXPR long long map (long long val)
 
FMT_CONSTEXPR unsigned long long map (unsigned long long val)
 
FMT_CONSTEXPR int128_t map (int128_t val)
 
FMT_CONSTEXPR uint128_t map (uint128_t val)
 
FMT_CONSTEXPR bool map (bool val)
 
template<typename T , FMT_ENABLE_IF(is_char< T >::value) >
FMT_CONSTEXPR char_type map (T val)
 
FMT_CONSTEXPR float map (float val)
 
FMT_CONSTEXPR double map (double val)
 
FMT_CONSTEXPR long double map (long double val)
 
FMT_CONSTEXPR const char_typemap (char_type *val)
 
FMT_CONSTEXPR const char_typemap (const char_type *val)
 
template<typename T , FMT_ENABLE_IF(is_string< T >::value) >
FMT_CONSTEXPR
basic_string_view< char_type
map (const T &val)
 
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, Context >::value) >
FMT_CONSTEXPR
basic_string_view< char_type
map (const T &val)
 
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, Context >::value) >
FMT_CONSTEXPR
basic_string_view< char_type
map (const T &val)
 
FMT_CONSTEXPR const char * map (const signed char *val)
 
FMT_CONSTEXPR const char * map (const unsigned char *val)
 
FMT_CONSTEXPR const char * map (signed char *val)
 
FMT_CONSTEXPR const char * map (unsigned char *val)
 
FMT_CONSTEXPR const voidmap (void *val)
 
FMT_CONSTEXPR const voidmap (const void *val)
 
FMT_CONSTEXPR const voidmap (std::nullptr_t val)
 
template<typename T >
FMT_CONSTEXPR int map (const T *)
 
template<typename T , FMT_ENABLE_IF(std::is_enum< T >::value &&!has_formatter< T, Context >::value &&!has_fallback_formatter< T, Context >::value) >
FMT_CONSTEXPR 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, Context >::value)) >
FMT_CONSTEXPR const T & map (const T &val)
 
template<typename T >
FMT_CONSTEXPR auto map (const named_arg< char_type, T > &val) -> decltype(std::declval< arg_mapper >().map(val.value))
 
unformattable map (...)
 

Detailed Description

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

Definition at line 1126 of file core.h.

Member Typedef Documentation

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

Definition at line 1127 of file core.h.

Member Function Documentation

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

Definition at line 1129 of file core.h.

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

Definition at line 1130 of file core.h.

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

Definition at line 1131 of file core.h.

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

Definition at line 1132 of file core.h.

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

Definition at line 1133 of file core.h.

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

Definition at line 1134 of file core.h.

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

Definition at line 1135 of file core.h.

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

Definition at line 1136 of file core.h.

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

Definition at line 1137 of file core.h.

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

Definition at line 1138 of file core.h.

template<typename Context >
FMT_CONSTEXPR int128_t detail::arg_mapper< Context >::map ( int128_t  val)
inline

Definition at line 1139 of file core.h.

template<typename Context >
FMT_CONSTEXPR uint128_t detail::arg_mapper< Context >::map ( uint128_t  val)
inline

Definition at line 1140 of file core.h.

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

Definition at line 1141 of file core.h.

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

Definition at line 1144 of file core.h.

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

Definition at line 1151 of file core.h.

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

Definition at line 1152 of file core.h.

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

Definition at line 1153 of file core.h.

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

Definition at line 1155 of file core.h.

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

Definition at line 1156 of file core.h.

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

Definition at line 1158 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, Context >::value) >
FMT_CONSTEXPR basic_string_view<char_type> detail::arg_mapper< Context >::map ( const T &  val)
inline

Definition at line 1168 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, Context >::value) >
FMT_CONSTEXPR basic_string_view<char_type> detail::arg_mapper< Context >::map ( const T &  val)
inline

Definition at line 1178 of file core.h.

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

Definition at line 1181 of file core.h.

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

Definition at line 1185 of file core.h.

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

Definition at line 1189 of file core.h.

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

Definition at line 1193 of file core.h.

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

Definition at line 1198 of file core.h.

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

Definition at line 1199 of file core.h.

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

Definition at line 1200 of file core.h.

template<typename Context >
template<typename T >
FMT_CONSTEXPR int detail::arg_mapper< Context >::map ( const T *  )
inline

Definition at line 1201 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, Context >::value) >
FMT_CONSTEXPR auto detail::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 1214 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, Context >::value)) >
FMT_CONSTEXPR const T& detail::arg_mapper< Context >::map ( const T &  val)
inline

Definition at line 1223 of file core.h.

template<typename Context >
template<typename T >
FMT_CONSTEXPR auto detail::arg_mapper< Context >::map ( const named_arg< char_type, T > &  val) -> decltype(std::declval<arg_mapper>().map(val.value))
inline

Definition at line 1228 of file core.h.

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

Definition at line 1233 of file core.h.


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