Rebel Fork Framework
Urho3D::CustomVariantValueImpl< T > Class Template Referencefinal

Custom variant value implementation. More...

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

Detailed Description

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

Custom variant value implementation.

Member Function Documentation

◆ CloneTo()

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

Clone object over destination.

Reimplemented from Urho3D::CustomVariantValue.

◆ Compare()

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

Compare to another custom value.

Reimplemented from Urho3D::CustomVariantValue.

◆ CopyTo()

template<class T>
bool Urho3D::CustomVariantValueImpl< T >::CopyTo ( CustomVariantValue & dest) const
inlineoverridevirtual

Implement CustomVariantValue.

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.

◆ MoveTo()

template<class T>
bool Urho3D::CustomVariantValueImpl< T >::MoveTo ( CustomVariantValue & dest)
inlineoverridevirtual

Move-assign value to destination.

Reimplemented from Urho3D::CustomVariantValue.

◆ RelocateTo()

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

Move object over destination.

Reimplemented from Urho3D::CustomVariantValue.

◆ Serialize()

template<class T>
void Urho3D::CustomVariantValueImpl< T >::Serialize ( Archive & ,
const char *  )
inlineoverridevirtual

Serialize to Archive.

Reimplemented from Urho3D::CustomVariantValue.

◆ ToString()

template<class T>
ea::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:
  • Urho3D/Core/Variant.h