Urho3D
Public Types | Public Member Functions | Private Attributes | List of all members
Urho3D::CustomVariantValueImpl< T > Class Template Referencefinal

Custom variant value implementation. More...

#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Core/Variant.h>

Inheritance diagram for Urho3D::CustomVariantValueImpl< T >:
Urho3D::CustomVariantValue

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...
 
CustomVariantValueClone () 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 CustomVariantValueClone () 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

value_
 Value.
 

Detailed Description

template<class T>
class Urho3D::CustomVariantValueImpl< T >

Custom variant value implementation.

Member Function Documentation

◆ Assign()

template<class T >
bool Urho3D::CustomVariantValueImpl< T >::Assign ( const CustomVariantValue rhs)
inlineoverridevirtual

Assign value.

Reimplemented from Urho3D::CustomVariantValue.

◆ Clone() [1/2]

template<class T >
CustomVariantValue * Urho3D::CustomVariantValueImpl< T >::Clone ( ) const
inlineoverridevirtual

Clone.

Reimplemented from Urho3D::CustomVariantValue.

◆ Clone() [2/2]

template<class T >
void Urho3D::CustomVariantValueImpl< T >::Clone ( void *  dest) const
inlineoverridevirtual

Placement clone.

Reimplemented from Urho3D::CustomVariantValue.

◆ Compare()

template<class T >
bool Urho3D::CustomVariantValueImpl< T >::Compare ( const CustomVariantValue rhs) const
inlineoverridevirtual

Compare to another custom value.

Reimplemented from Urho3D::CustomVariantValue.

◆ GetSize()

template<class T >
unsigned Urho3D::CustomVariantValueImpl< T >::GetSize ( ) const
inlineoverridevirtual

Get size.

Reimplemented from Urho3D::CustomVariantValue.

◆ IsZero()

template<class T >
bool Urho3D::CustomVariantValueImpl< T >::IsZero ( ) const
inlineoverridevirtual

Compare to zero.

Reimplemented from Urho3D::CustomVariantValue.

◆ ToString()

template<class T >
String Urho3D::CustomVariantValueImpl< T >::ToString ( ) const
inlineoverridevirtual

Convert custom value to string.

Reimplemented from Urho3D::CustomVariantValue.


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