kanzi::Variant Struct Reference

Union container for manipulating an object from a heterogeneous set of types in a uniform manner. More...

#include <kanzi/core.ui/property/variant.hpp>

Inheritance diagram for kanzi::Variant:

Public Types

typedef variant< monostate, bool, int, float, ColorRGBA, Vector2, Vector3, Vector4, SRTValue2D, SRTValue3D, Matrix3x3, Matrix4x4, string, ResourceID, ResourceSharedPtr, void *, KzcQuaternionBaseClass
 

Public Member Functions

 Variant ()
 
template<typename T >
 Variant (const T &v)
 
template<typename T >
Variantoperator= (const T &v)
 
 Variant (const Variant &v)
 
Variantoperator= (Variant other)
 

Friends

bool operator== (const Variant &lhs, const Variant &rhs)
 

Detailed Description

Union container for manipulating an object from a heterogeneous set of types in a uniform manner.

Member Typedef Documentation

Constructor & Destructor Documentation

kanzi::Variant::Variant ( )
inlineexplicit
template<typename T >
kanzi::Variant::Variant ( const T &  v)
inlineexplicit
kanzi::Variant::Variant ( const Variant v)
inline

Member Function Documentation

template<typename T >
Variant& kanzi::Variant::operator= ( const T &  v)
inline
Variant& kanzi::Variant::operator= ( Variant  other)
inline

Friends And Related Function Documentation

bool operator== ( const Variant lhs,
const Variant rhs 
)
friend

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