Urho3D
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Urho3D::CustomVariantValue Class Reference

Custom variant value. This type is not abstract to store it in the VariantValue by value. More...

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

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

Public Member Functions

 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 Member Functions

 CustomVariantValue (const std::type_info &typeInfo)
 Construct from type info.
 

Private Attributes

const std::type_info & typeInfo_
 Type info.
 

Friends

template<class T >
class CustomVariantValueImpl
 

Detailed Description

Custom variant value. This type is not abstract to store it in the VariantValue by value.

Member Function Documentation

◆ Assign()

virtual bool Urho3D::CustomVariantValue::Assign ( const CustomVariantValue rhs)
inlinevirtual

Assign value.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

◆ Clone() [1/2]

virtual CustomVariantValue * Urho3D::CustomVariantValue::Clone ( ) const
inlinevirtual

Clone.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

◆ Clone() [2/2]

virtual void Urho3D::CustomVariantValue::Clone ( void *  dest) const
inlinevirtual

Placement clone.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

◆ Compare()

virtual bool Urho3D::CustomVariantValue::Compare ( const CustomVariantValue rhs) const
inlinevirtual

Compare to another custom value.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

◆ GetSize()

virtual unsigned Urho3D::CustomVariantValue::GetSize ( ) const
inlinevirtual

Get size.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

◆ IsZero()

virtual bool Urho3D::CustomVariantValue::IsZero ( ) const
inlinevirtual

Compare to zero.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

◆ ToString()

virtual String Urho3D::CustomVariantValue::ToString ( ) const
inlinevirtual

Convert custom value to string.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.


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