U3D
Open-source, cross-platform 2D and 3D game engine built in C++
Loading...
Searching...
No Matches
Urho3D::CustomVariantValue Class Reference

#include </var/dev/u3d/stable/Source/Urho3D/Core/Variant.h>

Inheritance diagram for Urho3D::CustomVariantValue:
[legend]

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 >.

Here is the caller graph for this function:

◆ 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 >.

Here is the caller graph for this function:

◆ GetSize()

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

Get size.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsZero()

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

Compare to zero.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

Here is the caller graph for this function:

◆ ToString()

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

Convert custom value to string.

Reimplemented in Urho3D::CustomVariantValueImpl< T >.

Here is the caller graph for this function:

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