Urho3D
|
#include "../Container/HashMap.h"
#include "../Container/Ptr.h"
#include "../Math/Color.h"
#include "../Math/Matrix3.h"
#include "../Math/Matrix3x4.h"
#include "../Math/Rect.h"
#include "../Math/StringHash.h"
#include <typeinfo>
Classes | |
struct | Dviglo::ResourceRef |
Typed resource reference. More... | |
struct | Dviglo::ResourceRefList |
List of typed resource references. More... | |
class | Dviglo::CustomVariantValue |
struct | Dviglo::CustomVariantValueTraits< T > |
Custom variant value type traits. Specialize the template to implement custom type behavior. More... | |
class | Dviglo::CustomVariantValueImpl< T > |
Custom variant value implementation. More... | |
union | Dviglo::VariantValue |
Union for the possible variant values. Objects exceeding the VARIANT_VALUE_SIZE are allocated on the heap. More... | |
class | Dviglo::Variant |
Variable that supports a fixed set of types. More... | |
Typedefs | |
using | Dviglo::VariantVector = Vector< Variant > |
Vector of variants. | |
using | Dviglo::StringVector = Vector< String > |
Vector of strings. | |
using | Dviglo::VariantMap = HashMap< StringHash, Variant > |
Map of variants. | |
Enumerations | |
enum | Dviglo::VariantType { VAR_NONE = 0, VAR_INT, VAR_BOOL, VAR_FLOAT, VAR_VECTOR2, VAR_VECTOR3, VAR_VECTOR4, VAR_QUATERNION, VAR_COLOR, VAR_STRING, VAR_BUFFER, VAR_VOIDPTR, VAR_RESOURCEREF, VAR_RESOURCEREFLIST, VAR_VARIANTVECTOR, VAR_VARIANTMAP, VAR_INTRECT, VAR_INTVECTOR2, VAR_PTR, VAR_MATRIX3, VAR_MATRIX3X4, VAR_MATRIX4, VAR_DOUBLE, VAR_STRINGVECTOR, VAR_RECT, VAR_INTVECTOR3, VAR_INT64, VAR_CUSTOM_HEAP, VAR_CUSTOM_STACK, MAX_VAR_TYPES } |
Variant's supported types. | |
Functions | |
template<typename T > | |
CustomVariantValueImpl< T > | Dviglo::MakeCustomValue (const T &value) |
Make custom variant value. | |
template<typename T > | |
VariantType | Dviglo::GetVariantType () |
Return variant type from type. | |
template<> | |
VariantType | Dviglo::GetVariantType< int > () |
template<> | |
VariantType | Dviglo::GetVariantType< unsigned > () |
template<> | |
VariantType | Dviglo::GetVariantType< long long > () |
template<> | |
VariantType | Dviglo::GetVariantType< unsigned long long > () |
template<> | |
VariantType | Dviglo::GetVariantType< bool > () |
template<> | |
VariantType | Dviglo::GetVariantType< float > () |
template<> | |
VariantType | Dviglo::GetVariantType< double > () |
template<> | |
VariantType | Dviglo::GetVariantType< Vector2 > () |
template<> | |
VariantType | Dviglo::GetVariantType< Vector3 > () |
template<> | |
VariantType | Dviglo::GetVariantType< Vector4 > () |
template<> | |
VariantType | Dviglo::GetVariantType< Quaternion > () |
template<> | |
VariantType | Dviglo::GetVariantType< Color > () |
template<> | |
VariantType | Dviglo::GetVariantType< String > () |
template<> | |
VariantType | Dviglo::GetVariantType< StringHash > () |
template<> | |
VariantType | Dviglo::GetVariantType< PODVector< unsigned char > > () |
template<> | |
VariantType | Dviglo::GetVariantType< ResourceRef > () |
template<> | |
VariantType | Dviglo::GetVariantType< ResourceRefList > () |
template<> | |
VariantType | Dviglo::GetVariantType< VariantVector > () |
template<> | |
VariantType | Dviglo::GetVariantType< StringVector > () |
template<> | |
VariantType | Dviglo::GetVariantType< VariantMap > () |
template<> | |
VariantType | Dviglo::GetVariantType< Rect > () |
template<> | |
VariantType | Dviglo::GetVariantType< IntRect > () |
template<> | |
VariantType | Dviglo::GetVariantType< IntVector2 > () |
template<> | |
VariantType | Dviglo::GetVariantType< IntVector3 > () |
template<> | |
VariantType | Dviglo::GetVariantType< Matrix3 > () |
template<> | |
VariantType | Dviglo::GetVariantType< Matrix3x4 > () |
template<> | |
VariantType | Dviglo::GetVariantType< Matrix4 > () |
Variables | |
static const unsigned | Dviglo::VARIANT_VALUE_SIZE = sizeof(void*) * 4 |
Size of variant value. 16 bytes on 32-bit platform, 32 bytes on 64-bit platform. | |