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

value_
 Value.
 

Detailed Description

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

Custom variant value implementation.

Member Function Documentation

◆ CopyTo()

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

Implement CustomVariantValue.

Reimplemented from Urho3D::CustomVariantValue.


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