SoPlex Documentation
Loading...
Searching...
No Matches
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_typemap (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_typemap (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_typemap (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 void * map (void *val)
 
FMT_CONSTEXPR const void * map (const void *val)
 
FMT_CONSTEXPR const void * map (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

◆ char_type

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

Definition at line 1127 of file core.h.

Member Function Documentation

◆ map() [1/34]

template<typename Context >
unformattable map ( ...)

Definition at line 1233 of file core.h.

◆ map() [2/34]

template<typename Context >
FMT_CONSTEXPR bool map ( bool val)

Definition at line 1141 of file core.h.

◆ map() [3/34]

template<typename Context >
FMT_CONSTEXPR const char_type * map ( char_type * val)

Definition at line 1155 of file core.h.

◆ map() [4/34]

template<typename Context >
FMT_CONSTEXPR const char_type * map ( const char_type * val)

Definition at line 1156 of file core.h.

◆ map() [5/34]

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

Definition at line 1228 of file core.h.

References arg_mapper< Context >::map().

◆ map() [6/34]

template<typename Context >
FMT_CONSTEXPR const char * map ( const signed char * val)

Definition at line 1181 of file core.h.

◆ map() [7/34]

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

Definition at line 1158 of file core.h.

References detail::to_string_view().

◆ map() [8/34]

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 > map ( const T & val)

Definition at line 1168 of file core.h.

◆ map() [9/34]

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 > map ( const T & val)

Definition at line 1178 of file core.h.

◆ map() [10/34]

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 & map ( const T & val)

Definition at line 1223 of file core.h.

◆ map() [11/34]

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 map ( const T & val) -> decltype(std::declval<arg_mapper>().map( static_cast<typename std::underlying_type<T>::type>(val)))

Definition at line 1214 of file core.h.

References arg_mapper< Context >::map().

◆ map() [12/34]

template<typename Context >
template<typename T >
FMT_CONSTEXPR int map ( const T * )

Definition at line 1201 of file core.h.

◆ map() [13/34]

template<typename Context >
FMT_CONSTEXPR const char * map ( const unsigned char * val)

Definition at line 1185 of file core.h.

◆ map() [14/34]

template<typename Context >
FMT_CONSTEXPR const void * map ( const void * val)

Definition at line 1199 of file core.h.

◆ map() [15/34]

template<typename Context >
FMT_CONSTEXPR double map ( double val)

Definition at line 1152 of file core.h.

◆ map() [16/34]

template<typename Context >
FMT_CONSTEXPR float map ( float val)

Definition at line 1151 of file core.h.

◆ map() [17/34]

template<typename Context >
FMT_CONSTEXPR int map ( int val)

Definition at line 1133 of file core.h.

◆ map() [18/34]

template<typename Context >
FMT_CONSTEXPR int128_t map ( int128_t val)

Definition at line 1139 of file core.h.

◆ map() [19/34]

template<typename Context >
FMT_CONSTEXPR long double map ( long double val)

Definition at line 1153 of file core.h.

◆ map() [20/34]

template<typename Context >
FMT_CONSTEXPR long long map ( long long val)

Definition at line 1137 of file core.h.

◆ map() [21/34]

template<typename Context >
FMT_CONSTEXPR long_type map ( long val)

Definition at line 1135 of file core.h.

◆ map() [22/34]

template<typename Context >
FMT_CONSTEXPR int map ( short val)

Definition at line 1131 of file core.h.

◆ map() [23/34]

template<typename Context >
FMT_CONSTEXPR const char * map ( signed char * val)

Definition at line 1189 of file core.h.

References arg_mapper< Context >::map().

◆ map() [24/34]

◆ map() [25/34]

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

Definition at line 1200 of file core.h.

◆ map() [26/34]

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

Definition at line 1144 of file core.h.

◆ map() [27/34]

template<typename Context >
FMT_CONSTEXPR uint128_t map ( uint128_t val)

Definition at line 1140 of file core.h.

◆ map() [28/34]

template<typename Context >
FMT_CONSTEXPR const char * map ( unsigned char * val)

Definition at line 1193 of file core.h.

References arg_mapper< Context >::map().

◆ map() [29/34]

template<typename Context >
FMT_CONSTEXPR unsigned map ( unsigned char val)

Definition at line 1130 of file core.h.

◆ map() [30/34]

template<typename Context >
FMT_CONSTEXPR unsigned long long map ( unsigned long long val)

Definition at line 1138 of file core.h.

◆ map() [31/34]

template<typename Context >
FMT_CONSTEXPR ulong_type map ( unsigned long val)

Definition at line 1136 of file core.h.

◆ map() [32/34]

template<typename Context >
FMT_CONSTEXPR unsigned map ( unsigned short val)

Definition at line 1132 of file core.h.

◆ map() [33/34]

template<typename Context >
FMT_CONSTEXPR unsigned map ( unsigned val)

Definition at line 1134 of file core.h.

◆ map() [34/34]

template<typename Context >
FMT_CONSTEXPR const void * map ( void * val)

Definition at line 1198 of file core.h.