| 
    HDK
    
   | 
 
#include <UT_Format.h>
Classes | |
| struct | Custom | 
| struct | SizedString | 
Public Types | |
| enum | Type {  Type::None, Type::Int8, Type::UInt8, Type::Int16, Type::UInt16, Type::Int32, Type::UInt32, Type::Int64, Type::UInt64, Type::Float16, Type::Float32, Type::Float64, Type::ZeroString, Type::SizedString, Type::CharString, Type::Pointer, Type::Custom }  | 
Public Member Functions | |
| ArgValue (char v) | |
| ArgValue (int8 v) | |
| ArgValue (uint8 v) | |
| ArgValue (int16 v) | |
| ArgValue (uint16 v) | |
| ArgValue (int32 v) | |
| ArgValue (uint32 v) | |
| ArgValue (int64 v) | |
| ArgValue (uint64 v) | |
| ArgValue (fpreal16 v) | |
| ArgValue (fpreal32 v) | |
| ArgValue (fpreal64 v) | |
| ArgValue (bool v) | |
| ArgValue (char *v) | |
| ArgValue (const char *v) | |
| ArgValue (const UT_String &v) | |
| ArgValue (const UT_StringLit &v) | |
| ArgValue (const UT_StringRef &v) | |
| ArgValue (const UT_StringHolder &v) | |
| ArgValue (const UT_StringView &v) | |
| ArgValue (const std::string &v) | |
| ArgValue (void *v) | |
| ArgValue (const void *v) | |
| template<typename T > | |
| ArgValue (T v, UT_ENABLE_IF(!UT_IS_ENUM(T)&&UT_IS_PTR(T)&&!UT_HAS_FMT(UT_REMOVE_PTR(T)))) | |
| template<typename T > | |
| ArgValue (T v, UT_ENABLE_IF(!UT_IS_ENUM(T)&&UT_IS_PTR(T)&&UT_HAS_FMT(UT_REMOVE_PTR(T)))) | |
| template<typename T , unsigned N> | |
| ArgValue (T(&v)[N]) | |
| template<typename T > | |
| ArgValue (const T &v, UT_ENABLE_IF(UT_IS_ENUM(T)&&!UT_HAS_FMT(T))) | |
| template<typename T > | |
| ArgValue (const T &v, UT_ENABLE_IF(UT_IS_ENUM(T)&&UT_HAS_FMT(T))) | |
| template<typename T > | |
| ArgValue (const T &t, UT_ENABLE_IF(!UT_IS_PTR(T)&&!UT_IS_ENUM(T))) | |
| template<typename T > | |
| ArgValue (const char *kw, T &&value) | |
| size_t | formatCustom (char *buffer, size_t buffer_size) const | 
| ~ArgValue ()=default | |
| ArgValue (const ArgValue &)=default | |
| ArgValue & | operator= (const ArgValue &)=default | 
| Type | type () const | 
| bool | isEmpty () const | 
| bool | isInteger () const | 
| bool | isFloat () const | 
| bool | isSigned () const | 
| bool | isNumeric () const | 
| bool | isString () const | 
| bool | isPointer () const | 
| bool | isCustom () const | 
| bool | matchKeyword (const char *str, std::size_t len) const | 
Protected Types | |
| using | CustomFormat = size_t(*)(char *buffer, size_t buffer_size, const void *value) | 
Protected Member Functions | |
| ArgValue () | |
| ArgValue (Type type) | |
| void | setKeyword (const char *kw) | 
Protected Attributes | |
| union { | |
| int8 myI8 | |
| uint8 myU8 | |
| int16 myI16 | |
| uint16 myU16 | |
| int32 myI32 | |
| uint32 myU32 | |
| int64 myI64 | |
| uint64 myU64 | |
| fpreal16 myF16 | |
| fpreal32 myF32 | |
| fpreal64 myF64 | |
| char myChar | |
| const char * myStr | |
| SizedString mySizedStr | |
| const void * myPtr | |
| Custom myCustom | |
| }; | |
Friends | |
| class | Formatter | 
A container class that holds the individual argument values to be formatted with the format string.
Definition at line 239 of file UT_Format.h.
      
  | 
  protected | 
Definition at line 478 of file UT_Format.h.
      
  | 
  strong | 
| Enumerator | |
|---|---|
| None | |
| Int8 | |
| UInt8 | |
| Int16 | |
| UInt16 | |
| Int32 | |
| UInt32 | |
| Int64 | |
| UInt64 | |
| Float16 | |
| Float32 | |
| Float64 | |
| ZeroString | |
| SizedString | |
| CharString | |
| Pointer | |
| Custom | |
Definition at line 243 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 252 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 253 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 254 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 255 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 256 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 257 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 258 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 259 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 260 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 261 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 262 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 263 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 286 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 300 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 301 of file UT_Format.h.
| UT::Format::ArgValue::ArgValue | ( | const UT_String & | v | ) | 
| UT::Format::ArgValue::ArgValue | ( | const UT_StringLit & | v | ) | 
| UT::Format::ArgValue::ArgValue | ( | const UT_StringRef & | v | ) | 
| UT::Format::ArgValue::ArgValue | ( | const UT_StringHolder & | v | ) | 
| UT::Format::ArgValue::ArgValue | ( | const UT_StringView & | v | ) | 
      
  | 
  inline | 
Definition at line 307 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 311 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 315 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 331 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 341 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 351 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 359 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 366 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 376 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 385 of file UT_Format.h.
      
  | 
  default | 
      
  | 
  default | 
      
  | 
  inlineprotected | 
Definition at line 466 of file UT_Format.h.
      
  | 
  inlineprotected | 
Definition at line 467 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 391 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 456 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 413 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 423 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 415 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 439 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 451 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 430 of file UT_Format.h.
      
  | 
  inline | 
Definition at line 444 of file UT_Format.h.
| bool UT::Format::ArgValue::matchKeyword | ( | const char * | str, | 
| std::size_t | len | ||
| ) | const | 
      
  | 
  protected | 
      
  | 
  inline | 
Definition at line 411 of file UT_Format.h.
Definition at line 464 of file UT_Format.h.
| union { ... } | 
| char UT::Format::ArgValue::myChar | 
Definition at line 499 of file UT_Format.h.
| Custom UT::Format::ArgValue::myCustom | 
Definition at line 503 of file UT_Format.h.
| fpreal16 UT::Format::ArgValue::myF16 | 
Definition at line 496 of file UT_Format.h.
| fpreal32 UT::Format::ArgValue::myF32 | 
Definition at line 497 of file UT_Format.h.
| fpreal64 UT::Format::ArgValue::myF64 | 
Definition at line 498 of file UT_Format.h.
| int16 UT::Format::ArgValue::myI16 | 
Definition at line 490 of file UT_Format.h.
| int32 UT::Format::ArgValue::myI32 | 
Definition at line 492 of file UT_Format.h.
| int64 UT::Format::ArgValue::myI64 | 
Definition at line 494 of file UT_Format.h.
| int8 UT::Format::ArgValue::myI8 | 
Definition at line 488 of file UT_Format.h.
| const void* UT::Format::ArgValue::myPtr | 
Definition at line 502 of file UT_Format.h.
| SizedString UT::Format::ArgValue::mySizedStr | 
Definition at line 501 of file UT_Format.h.
| const char* UT::Format::ArgValue::myStr | 
Definition at line 500 of file UT_Format.h.
| uint16 UT::Format::ArgValue::myU16 | 
Definition at line 491 of file UT_Format.h.
| uint32 UT::Format::ArgValue::myU32 | 
Definition at line 493 of file UT_Format.h.
| uint64 UT::Format::ArgValue::myU64 | 
Definition at line 495 of file UT_Format.h.
| uint8 UT::Format::ArgValue::myU8 | 
Definition at line 489 of file UT_Format.h.