HDK
|
#include <UT_Variadic.h>
Public Types | |
typedef UT_VariadicT < UT_VariadicPODType > | Base |
Public Member Functions | |
UT_VariadicPOD () | |
UT_VariadicPOD & | operator<< (const UT_VariadicPODType &val) |
bool | import (int arg, int32 &value) const |
bool | import (int arg, int64 &value) const |
bool | import (int arg, fpreal32 &value, bool strict_value=false) const |
bool | import (int arg, fpreal64 &value, bool strict_value=false) const |
bool | import (int arg, const char *&value) const |
bool | import (int arg, const int8 *&value) const |
bool | import (int arg, const uint8 *&value) const |
bool | import (int arg, const int16 *&value) const |
bool | import (int arg, const uint16 *&value) const |
bool | import (int arg, const int32 *&value) const |
bool | import (int arg, const int64 *&value) const |
bool | import (int arg, const fpreal16 *&value) const |
bool | import (int arg, const fpreal32 *&value) const |
bool | import (int arg, const fpreal64 *&value) const |
bool | save (UT_JSONWriter &w) const |
void | dump () const |
Public Member Functions inherited from UT_VariadicT< UT_VariadicPODType > | |
UT_VariadicT < UT_VariadicPODType > & | operator<< (const UT_VariadicPODType &val) |
exint | entries () const |
const UT_VariadicPODType & | item (exint arg) const |
void | append (const UT_VariadicPODType &v) |
Additional Inherited Members | |
Protected Attributes inherited from UT_VariadicT< UT_VariadicPODType > | |
UT_Array< const UT_VariadicPODType * > | myItems |
Specialization of UT_VariadicT for simple int/float/string types. This class supports implicit casting from integer to float types.
UT_VariadicPOD allows you to easily create a type-safe variadic argument list. For example, a function that takes variadic args might be something like:
To call a function with variadic arguments is fairly straightforward
Of course, in the above example, it might be better to use
Definition at line 121 of file UT_Variadic.h.
Definition at line 124 of file UT_Variadic.h.
|
inline |
Definition at line 126 of file UT_Variadic.h.
void UT_VariadicPOD::dump | ( | ) | const |
Save argument list or dump to stdout
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
bool UT_VariadicPOD::import | ( | int | arg, |
const char *& | value | ||
) | const |
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
Import the value. This performs type safety checks. When importing real values, integer values will be implicitly cast unless the strict_value option is set.
|
inline |
Definition at line 131 of file UT_Variadic.h.
bool UT_VariadicPOD::save | ( | UT_JSONWriter & | w | ) | const |
Save argument list or dump to stdout