TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
fmt::internal::ArgVisitor< Impl, Result > Class Template Reference

#include <format.h>

Public Member Functions

void report_unhandled_arg ()
 
Result visit_unhandled_arg ()
 
Result visit_int (int value)
 
Result visit_long_long (LongLong value)
 
Result visit_uint (unsigned value)
 
Result visit_ulong_long (ULongLong value)
 
Result visit_bool (bool value)
 
Result visit_char (int value)
 
template<typename T >
Result visit_any_int (T)
 
Result visit_double (double value)
 
Result visit_long_double (long double value)
 
template<typename T >
Result visit_any_double (T)
 
Result visit_cstring (const char *)
 
Result visit_string (Arg::StringValue< char >)
 
Result visit_wstring (Arg::StringValue< wchar_t >)
 
Result visit_pointer (const void *)
 
Result visit_custom (Arg::CustomValue)
 
Result visit (const Arg &arg)
 

Member Function Documentation

template<typename Impl, typename Result>
void fmt::internal::ArgVisitor< Impl, Result >::report_unhandled_arg ( )
inline
1291 {}
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit ( const Arg arg)
inline
1348  {
1349  switch (arg.type) {
1350  default:
1351  FMT_ASSERT(false, "invalid argument type");
1352  return Result();
1353  case Arg::INT:
1354  return FMT_DISPATCH(visit_int(arg.int_value));
1355  case Arg::UINT:
1356  return FMT_DISPATCH(visit_uint(arg.uint_value));
1357  case Arg::LONG_LONG:
1359  case Arg::ULONG_LONG:
1361  case Arg::BOOL:
1362  return FMT_DISPATCH(visit_bool(arg.int_value != 0));
1363  case Arg::CHAR:
1364  return FMT_DISPATCH(visit_char(arg.int_value));
1365  case Arg::DOUBLE:
1366  return FMT_DISPATCH(visit_double(arg.double_value));
1367  case Arg::LONG_DOUBLE:
1369  case Arg::CSTRING:
1370  return FMT_DISPATCH(visit_cstring(arg.string.value));
1371  case Arg::STRING:
1372  return FMT_DISPATCH(visit_string(arg.string));
1373  case Arg::WSTRING:
1374  return FMT_DISPATCH(visit_wstring(arg.wstring));
1375  case Arg::POINTER:
1376  return FMT_DISPATCH(visit_pointer(arg.pointer));
1377  case Arg::CUSTOM:
1378  return FMT_DISPATCH(visit_custom(arg.custom));
1379  }
1380  }
double double_value
Definition: format.h:961
Definition: format.h:977
Result visit_wstring(Arg::StringValue< wchar_t >)
Definition: format.h:1338
Definition: format.h:974
Result visit_long_long(LongLong value)
Definition: format.h:1301
Result visit_cstring(const char *)
Definition: format.h:1332
const void * pointer
Definition: format.h:963
Definition: format.h:976
CustomValue custom
Definition: format.h:968
Definition: format.h:974
Result visit_string(Arg::StringValue< char >)
Definition: format.h:1335
Result visit_ulong_long(ULongLong value)
Definition: format.h:1307
Result visit_uint(unsigned value)
Definition: format.h:1304
Result visit_char(int value)
Definition: format.h:1313
Definition: format.h:977
Definition: format.h:974
Result visit_double(double value)
Definition: format.h:1321
unsigned uint_value
Definition: format.h:958
Result visit_custom(Arg::CustomValue)
Definition: format.h:1344
Definition: format.h:977
int int_value
Definition: format.h:957
StringValue< char > string
Definition: format.h:964
const Char * value
Definition: format.h:944
Result visit_long_double(long double value)
Definition: format.h:1324
#define FMT_DISPATCH(call)
Definition: format.h:1266
StringValue< wchar_t > wstring
Definition: format.h:967
Result visit_int(int value)
Definition: format.h:1298
ULongLong ulong_long_value
Definition: format.h:960
Type type
Definition: format.h:984
LongLong long_long_value
Definition: format.h:959
Definition: format.h:974
long double long_double_value
Definition: format.h:962
Definition: format.h:974
Definition: format.h:977
Result visit_pointer(const void *)
Definition: format.h:1341
Definition: format.h:976
Definition: format.h:977
Definition: format.h:974
#define FMT_ASSERT(condition, message)
Definition: format.h:221
Result visit_bool(bool value)
Definition: format.h:1310
template<typename Impl, typename Result>
template<typename T >
Result fmt::internal::ArgVisitor< Impl, Result >::visit_any_double ( )
inline
1328  {
1330  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293
template<typename Impl, typename Result>
template<typename T >
Result fmt::internal::ArgVisitor< Impl, Result >::visit_any_int ( )
inline
1317  {
1319  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_bool ( bool  value)
inline
1310  {
1311  return FMT_DISPATCH(visit_any_int(value));
1312  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_any_int(T)
Definition: format.h:1317
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_char ( int  value)
inline
1313  {
1314  return FMT_DISPATCH(visit_any_int(value));
1315  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_any_int(T)
Definition: format.h:1317
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_cstring ( const char *  )
inline
1332  {
1334  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_custom ( Arg::CustomValue  )
inline
1344  {
1346  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_double ( double  value)
inline
1321  {
1323  }
Result visit_any_double(T)
Definition: format.h:1328
#define FMT_DISPATCH(call)
Definition: format.h:1266
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_int ( int  value)
inline
1298  {
1299  return FMT_DISPATCH(visit_any_int(value));
1300  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_any_int(T)
Definition: format.h:1317
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_long_double ( long double  value)
inline
1324  {
1326  }
Result visit_any_double(T)
Definition: format.h:1328
#define FMT_DISPATCH(call)
Definition: format.h:1266
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_long_long ( LongLong  value)
inline
1301  {
1302  return FMT_DISPATCH(visit_any_int(value));
1303  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_any_int(T)
Definition: format.h:1317
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_pointer ( const void *  )
inline
1341  {
1343  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_string ( Arg::StringValue< char >  )
inline
1335  {
1337  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_uint ( unsigned  value)
inline
1304  {
1305  return FMT_DISPATCH(visit_any_int(value));
1306  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_any_int(T)
Definition: format.h:1317
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_ulong_long ( ULongLong  value)
inline
1307  {
1308  return FMT_DISPATCH(visit_any_int(value));
1309  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_any_int(T)
Definition: format.h:1317
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_unhandled_arg ( )
inline
1293  {
1295  return Result();
1296  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
void report_unhandled_arg()
Definition: format.h:1291
template<typename Impl, typename Result>
Result fmt::internal::ArgVisitor< Impl, Result >::visit_wstring ( Arg::StringValue< wchar_t >  )
inline
1338  {
1340  }
#define FMT_DISPATCH(call)
Definition: format.h:1266
Result visit_unhandled_arg()
Definition: format.h:1293

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