NGL  6.5
The NCCA Graphics Library
fmt::internal::MakeValue< Formatter > Class Template Reference

#include <format.h>

+ Inheritance diagram for fmt::internal::MakeValue< Formatter >:
+ Collaboration diagram for fmt::internal::MakeValue< Formatter >:

Public Types

typedef Formatter::Char Char
 
- Public Types inherited from fmt::internal::Value
enum  Type {
  NONE, NAMED_ARG, INT, UINT,
  LONG_LONG, ULONG_LONG, BOOL, CHAR,
  LAST_INTEGER_TYPE = CHAR, DOUBLE, LONG_DOUBLE, LAST_NUMERIC_TYPE = LONG_DOUBLE,
  CSTRING, STRING, WSTRING, POINTER,
  CUSTOM
}
 
typedef void(* FormatFunc) (void *formatter, const void *arg, void *format_str_ptr)
 

Public Member Functions

 MakeValue ()
 
 MakeValue (long value)
 
 MakeValue (unsigned long value)
 
 MakeValue (typename WCharHelper< wchar_t, Char >::Supported value)
 
template<typename T >
 MakeValue (const T &value, typename EnableIf< Not< ConvertToInt< T >::value >::value, int >::type=0)
 
template<typename T >
 MakeValue (const T &value, typename EnableIf< ConvertToInt< T >::value, int >::type=0)
 
template<typename Char_ >
 MakeValue (const NamedArg< Char_ > &value)
 

Static Public Member Functions

static uint64_t type (long)
 
static uint64_t type (unsigned long)
 
static uint64_t type (wchar_t)
 
template<typename T >
static uint64_t type (const T &)
 
template<typename Char_ >
static uint64_t type (const NamedArg< Char_ > &)
 

Private Member Functions

template<typename T >
 MakeValue (const T *value)
 
template<typename T >
 MakeValue (T *value)
 
 MakeValue (typename WCharHelper< wchar_t, Char >::Unsupported)
 
 MakeValue (typename WCharHelper< wchar_t *, Char >::Unsupported)
 
 MakeValue (typename WCharHelper< const wchar_t *, Char >::Unsupported)
 
 MakeValue (typename WCharHelper< const std::wstring &, Char >::Unsupported)
 
 MakeValue (typename WCharHelper< WStringRef, Char >::Unsupported)
 
void set_string (StringRef str)
 
void set_string (WStringRef str)
 

Static Private Member Functions

template<typename T >
static void format_custom_arg (void *formatter, const void *arg, void *format_str_ptr)
 

Additional Inherited Members

- Public Attributes inherited from fmt::internal::Arg
Type type
 
- Public Attributes inherited from fmt::internal::Value
union {
   int   int_value
 
   unsigned   uint_value
 
   LongLong   long_long_value
 
   ULongLong   ulong_long_value
 
   double   double_value
 
   long double   long_double_value
 
   const void *   pointer
 
   StringValue< char >   string
 
   StringValue< signed char >   sstring
 
   StringValue< unsigned char >   ustring
 
   StringValue< wchar_t >   wstring
 
   CustomValue   custom
 
}; 
 

Detailed Description

template<typename Formatter>
class fmt::internal::MakeValue< Formatter >

Definition at line 1173 of file format.h.

Member Typedef Documentation

template<typename Formatter>
typedef Formatter::Char fmt::internal::MakeValue< Formatter >::Char

Definition at line 1175 of file format.h.

Constructor & Destructor Documentation

template<typename Formatter>
template<typename T >
fmt::internal::MakeValue< Formatter >::MakeValue ( const T *  value)
private
template<typename Formatter>
template<typename T >
fmt::internal::MakeValue< Formatter >::MakeValue ( T *  value)
private
template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( typename WCharHelper< wchar_t, Char >::Unsupported  )
private
template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( typename WCharHelper< wchar_t *, Char >::Unsupported  )
private
template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( typename WCharHelper< const wchar_t *, Char >::Unsupported  )
private
template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( typename WCharHelper< const std::wstring &, Char >::Unsupported  )
private
template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( typename WCharHelper< WStringRef, Char >::Unsupported  )
private
template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( )
inline

Definition at line 1220 of file format.h.

template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( long  value)
inline

Definition at line 1235 of file format.h.

References fmt::internal::const_check().

+ Here is the call graph for this function:

template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( unsigned long  value)
inline

Definition at line 1247 of file format.h.

References fmt::internal::const_check().

+ Here is the call graph for this function:

template<typename Formatter>
fmt::internal::MakeValue< Formatter >::MakeValue ( typename WCharHelper< wchar_t, Char >::Supported  value)
inline

Definition at line 1268 of file format.h.

template<typename Formatter>
template<typename T >
fmt::internal::MakeValue< Formatter >::MakeValue ( const T &  value,
typename EnableIf< Not< ConvertToInt< T >::value >::value, int >::type  = 0 
)
inline

Definition at line 1303 of file format.h.

template<typename Formatter>
template<typename T >
fmt::internal::MakeValue< Formatter >::MakeValue ( const T &  value,
typename EnableIf< ConvertToInt< T >::value, int >::type  = 0 
)
inline

Definition at line 1311 of file format.h.

template<typename Formatter>
template<typename Char_ >
fmt::internal::MakeValue< Formatter >::MakeValue ( const NamedArg< Char_ > &  value)
inline

Definition at line 1324 of file format.h.

Member Function Documentation

template<typename Formatter>
template<typename T >
static void fmt::internal::MakeValue< Formatter >::format_custom_arg ( void formatter,
const void arg,
void format_str_ptr 
)
inlinestaticprivate

Definition at line 1212 of file format.h.

References fmt::internal::format_arg().

+ Here is the call graph for this function:

template<typename Formatter>
void fmt::internal::MakeValue< Formatter >::set_string ( StringRef  str)
inlineprivate

Definition at line 1200 of file format.h.

References fmt::BasicStringRef< Char >::data(), and fmt::BasicStringRef< Char >::size().

+ Here is the call graph for this function:

template<typename Formatter>
void fmt::internal::MakeValue< Formatter >::set_string ( WStringRef  str)
inlineprivate

Definition at line 1205 of file format.h.

References fmt::BasicStringRef< Char >::data(), and fmt::BasicStringRef< Char >::size().

+ Here is the call graph for this function:

template<typename Formatter>
static uint64_t fmt::internal::MakeValue< Formatter >::type ( long  )
inlinestatic

Definition at line 1243 of file format.h.

References fmt::internal::Value::INT, and fmt::internal::Value::LONG_LONG.

+ Here is the caller graph for this function:

template<typename Formatter>
static uint64_t fmt::internal::MakeValue< Formatter >::type ( unsigned  long)
inlinestatic

Definition at line 1253 of file format.h.

References FMT_MAKE_VALUE, INT(), UINT(), fmt::internal::Value::UINT, and fmt::internal::Value::ULONG_LONG.

+ Here is the call graph for this function:

template<typename Formatter>
static uint64_t fmt::internal::MakeValue< Formatter >::type ( wchar_t  )
inlinestatic

Definition at line 1271 of file format.h.

References fmt::internal::Value::CHAR.

template<typename Formatter>
template<typename T >
static uint64_t fmt::internal::MakeValue< Formatter >::type ( const T &  )
inlinestatic

Definition at line 1317 of file format.h.

References fmt::internal::Value::CUSTOM, and fmt::internal::Value::INT.

template<typename Formatter>
template<typename Char_ >
static uint64_t fmt::internal::MakeValue< Formatter >::type ( const NamedArg< Char_ > &  )
inlinestatic

Definition at line 1327 of file format.h.

References fmt::internal::Value::NAMED_ARG.


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