Tramway SDK
|
Generic, type-safe union. More...
#include <value.h>
Public Member Functions | |
Value () | |
~Value () | |
Value (const Value &other) | |
Value & | operator= (const Value &other) |
bool | operator== (const Value &other) const |
Value (bool value) | |
Value (name_t value) | |
Value (const char *value) | |
Value (int8_t value) | |
Value (int16_t value) | |
Value (int32_t value) | |
Value (int64_t value) | |
Value (uint8_t value) | |
Value (uint16_t value) | |
Value (uint32_t value) | |
Value (uint64_t value) | |
Value (vec2 value) | |
Value (vec3 value) | |
Value (vec4 value) | |
Value (quat value) | |
Value (float value) | |
Value (double value) | |
operator bool () const | |
operator name_t () const | |
operator const char * () const | |
operator int8_t () const | |
operator int16_t () const | |
operator int32_t () const | |
operator int64_t () const | |
operator uint8_t () const | |
operator uint16_t () const | |
operator uint32_t () const | |
operator uint64_t () const | |
operator float () const | |
operator double () const | |
operator vec2 () const | |
operator vec3 () const | |
operator vec4 () const | |
operator quat () const | |
bool | IsBool () const |
bool | IsInt () const |
bool | IsFloat () const |
int | GetInt () const |
float | GetFloat () const |
Type | GetType () const |
Protected Attributes | |
Type | type |
union { | |
bool bool_value | |
name_t name_value | |
const char * string_value | |
int8_t int8_value | |
int16_t int16_value | |
int32_t int32_value | |
int64_t int64_value | |
uint8_t uint8_value | |
uint16_t uint16_value | |
uint32_t uint32_value | |
uint64_t uint64_value | |
float float_value | |
double double_value | |
vec2 vec2_value | |
vec3 vec3_value | |
vec4 vec4_value | |
quat quat_value | |
}; | |
Friends | |
class | ValuePtr |
Generic, type-safe union.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
union { ... } tram::Value::@30 |
bool tram::Value::bool_value |
double tram::Value::double_value |
float tram::Value::float_value |
int16_t tram::Value::int16_value |
int32_t tram::Value::int32_value |
int64_t tram::Value::int64_value |
int8_t tram::Value::int8_value |
name_t tram::Value::name_value |
quat tram::Value::quat_value |
const char* tram::Value::string_value |
|
protected |
uint16_t tram::Value::uint16_value |
uint32_t tram::Value::uint32_value |
uint64_t tram::Value::uint64_value |
uint8_t tram::Value::uint8_value |
vec2 tram::Value::vec2_value |
vec3 tram::Value::vec3_value |
vec4 tram::Value::vec4_value |