Rebel Fork Framework
|
Custom variant value implementation. More...
#include <Urho3D/Core/Variant.h>
Public Types | |
using | ClassName = CustomVariantValueImpl< T > |
This class name. | |
using | Traits = CustomVariantValueTraits< T > |
Type traits for the type. | |
Public Member Functions | |
CustomVariantValueImpl (const T &value) | |
Construct from value. | |
CustomVariantValueImpl (T &&value) | |
Move-construct from value. | |
T & | GetValue () |
Get value. | |
const T & | GetValue () const |
Get const value. | |
bool | CopyTo (CustomVariantValue &dest) const override |
bool | MoveTo (CustomVariantValue &dest) override |
Move-assign value to destination. | |
void | CloneTo (void *dest) const override |
Clone object over destination. | |
void | RelocateTo (void *dest) override |
Move object over destination. | |
unsigned | GetSize () const override |
Get size. | |
bool | Compare (const CustomVariantValue &rhs) const override |
Compare to another custom value. | |
bool | IsZero () const override |
Compare to zero. | |
ea::string | ToString () const override |
Convert custom value to string. | |
void | Serialize (Archive &archive, const char *name) override |
Serialize to Archive. | |
Public Member Functions inherited from Urho3D::CustomVariantValue | |
CustomVariantValue ()=default | |
Construct empty. | |
virtual | ~CustomVariantValue ()=default |
Destruct. | |
const std::type_info & | GetTypeInfo () const |
Get the type info. | |
template<class T > | |
bool | IsType () const |
Return whether the specified type is stored. | |
template<class T > | |
T * | GetValuePtr () |
Return pointer to value of the specified type. Return null pointer if type does not match. | |
template<class T > | |
const T * | GetValuePtr () const |
Return const pointer to value of the specified type. Return null pointer if type does not match. | |
Private Attributes | |
T | value_ |
Value. | |
Custom variant value implementation.
|
inlineoverridevirtual |
Implement CustomVariantValue.
Reimplemented from Urho3D::CustomVariantValue.