Scippy

SoPlex

Sequential object-oriented simPlex

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) >
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) >
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 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(map(static_cast< typename std::underlying_type< T >::type >(val)))
 
template<typename T , FMT_ENABLE_IF( !is_string< T >::value &&!is_char< T >::value && !std::is_constructible< basic_string_view< char_type >, T >::value &&(has_formatter< T, Context >::value||(has_fallback_formatter< T, Context >::value && !std::is_constructible< std_string_view< char_type >, T >::value))) >
FMT_CONSTEXPR const T & map (const T &val)
 
template<typename T >
FMT_CONSTEXPR const named_arg_base< char_type > & map (const named_arg< T, char_type > &val)
 

Detailed Description

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

Definition at line 832 of file core.h.

Member Typedef Documentation

◆ char_type

using char_type = typename Context::char_type

Definition at line 833 of file core.h.

Member Function Documentation

◆ map() [1/31]

FMT_CONSTEXPR int map ( signed char  val)

Definition at line 835 of file core.h.

◆ map() [2/31]

FMT_CONSTEXPR unsigned map ( unsigned char  val)

Definition at line 836 of file core.h.

◆ map() [3/31]

FMT_CONSTEXPR int map ( short  val)

Definition at line 837 of file core.h.

◆ map() [4/31]

FMT_CONSTEXPR unsigned map ( unsigned short  val)

Definition at line 838 of file core.h.

◆ map() [5/31]

FMT_CONSTEXPR int map ( int  val)

Definition at line 839 of file core.h.

◆ map() [6/31]

FMT_CONSTEXPR unsigned map ( unsigned  val)

Definition at line 840 of file core.h.

◆ map() [7/31]

FMT_CONSTEXPR long_type map ( long  val)

Definition at line 841 of file core.h.

◆ map() [8/31]

FMT_CONSTEXPR ulong_type map ( unsigned long  val)

Definition at line 842 of file core.h.

◆ map() [9/31]

FMT_CONSTEXPR long long map ( long long  val)

Definition at line 843 of file core.h.

◆ map() [10/31]

FMT_CONSTEXPR unsigned long long map ( unsigned long long  val)

Definition at line 844 of file core.h.

◆ map() [11/31]

Definition at line 845 of file core.h.

◆ map() [12/31]

Definition at line 846 of file core.h.

◆ map() [13/31]

FMT_CONSTEXPR bool map ( bool  val)

Definition at line 847 of file core.h.

◆ map() [14/31]

FMT_CONSTEXPR char_type map ( val)

Definition at line 850 of file core.h.

◆ map() [15/31]

FMT_CONSTEXPR float map ( float  val)

Definition at line 857 of file core.h.

◆ map() [16/31]

FMT_CONSTEXPR double map ( double  val)

Definition at line 858 of file core.h.

◆ map() [17/31]

FMT_CONSTEXPR long double map ( long double  val)

Definition at line 859 of file core.h.

◆ map() [18/31]

FMT_CONSTEXPR const char_type* map ( char_type val)

Definition at line 861 of file core.h.

◆ map() [19/31]

FMT_CONSTEXPR const char_type* map ( const char_type val)

Definition at line 862 of file core.h.

◆ map() [20/31]

FMT_CONSTEXPR basic_string_view<char_type> map ( const T &  val)

Definition at line 864 of file core.h.

References FMT_ENABLE_IF, and to_string_view().

◆ map() [21/31]

FMT_CONSTEXPR basic_string_view<char_type> map ( const T &  val)

Definition at line 873 of file core.h.

References FMT_ENABLE_IF.

◆ map() [22/31]

FMT_CONSTEXPR basic_string_view<char_type> map ( const T &  val)

Definition at line 882 of file core.h.

◆ map() [23/31]

FMT_CONSTEXPR const char* map ( const signed char *  val)

Definition at line 885 of file core.h.

◆ map() [24/31]

FMT_CONSTEXPR const char* map ( const unsigned char *  val)

Definition at line 889 of file core.h.

◆ map() [25/31]

FMT_CONSTEXPR const void* map ( void *  val)

Definition at line 894 of file core.h.

◆ map() [26/31]

FMT_CONSTEXPR const void* map ( const void *  val)

Definition at line 895 of file core.h.

◆ map() [27/31]

FMT_CONSTEXPR const void* map ( std::nullptr_t  val)

Definition at line 896 of file core.h.

◆ map() [28/31]

FMT_CONSTEXPR int map ( const T *  )

Definition at line 897 of file core.h.

References FMT_ENABLE_IF.

◆ map() [29/31]

FMT_CONSTEXPR auto map ( const T &  val) -> decltype( map(static_cast<typename std::underlying_type<T>::type>(val)))

Definition at line 910 of file core.h.

References FMT_ENABLE_IF.

◆ map() [30/31]

FMT_CONSTEXPR const T& map ( const T &  val)

Definition at line 922 of file core.h.

◆ map() [31/31]

FMT_CONSTEXPR const named_arg_base<char_type>& map ( const named_arg< T, char_type > &  val)

Definition at line 927 of file core.h.

References arg(), named_arg_base< Char >::data, and named_arg< T, Char >::value.