Urho3D
|
Custom variant value implementation. More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Variant.h>
Public Types | |
using | ClassName = CustomVariantValueImpl< T > |
This class name. | |
using | Traits = CustomVariantValueTraits< T > |
Type traits. | |
Public Member Functions | |
CustomVariantValueImpl (const T &value) | |
Construct from value. | |
void | SetValue (const T &value) |
Set value. | |
T & | GetValue () |
Get value. | |
const T & | GetValue () const |
Get const value. | |
bool | Assign (const CustomVariantValue &rhs) override |
Assign value. More... | |
CustomVariantValue * | Clone () const override |
Clone. More... | |
void | Clone (void *dest) const override |
Placement clone. More... | |
unsigned | GetSize () const override |
Get size. More... | |
bool | Compare (const CustomVariantValue &rhs) const override |
Compare to another custom value. More... | |
bool | IsZero () const override |
Compare to zero. More... | |
String | ToString () const override |
Convert custom value to string. More... | |
Public Member Functions inherited from Urho3D::CustomVariantValue | |
CustomVariantValue () | |
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. | |
virtual bool | Assign (const CustomVariantValue &rhs) |
Assign value. More... | |
virtual CustomVariantValue * | Clone () const |
Clone. More... | |
virtual void | Clone (void *dest) const |
Placement clone. More... | |
virtual unsigned | GetSize () const |
Get size. More... | |
virtual bool | Compare (const CustomVariantValue &rhs) const |
Compare to another custom value. More... | |
virtual bool | IsZero () const |
Compare to zero. More... | |
virtual String | ToString () const |
Convert custom value to string. More... | |
Private Attributes | |
T | value_ |
Value. | |
Custom variant value implementation.
|
inlineoverridevirtual |
Assign value.
Reimplemented from Urho3D::CustomVariantValue.
|
inlineoverridevirtual |
Clone.
Reimplemented from Urho3D::CustomVariantValue.
|
inlineoverridevirtual |
Placement clone.
Reimplemented from Urho3D::CustomVariantValue.
|
inlineoverridevirtual |
Compare to another custom value.
Reimplemented from Urho3D::CustomVariantValue.
|
inlineoverridevirtual |
Get size.
Reimplemented from Urho3D::CustomVariantValue.
|
inlineoverridevirtual |
Compare to zero.
Reimplemented from Urho3D::CustomVariantValue.
|
inlineoverridevirtual |
Convert custom value to string.
Reimplemented from Urho3D::CustomVariantValue.