Urho3D::CustomVariantValueImpl< T > Class Template Referencefinal

Custom variant value implementation. More...

#include <Urho3D/Core/Variant.h>

Inheritance diagram for Urho3D::CustomVariantValueImpl< T >:
[legend]
Collaboration diagram for Urho3D::CustomVariantValueImpl< T >:
[legend]

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.
 
CustomVariantValueClone () const override
 Clone.
 
void Clone (void *dest) const override
 Placement clone.
 
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.
 
String ToString () const override
 Convert custom value to string.
 
- 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.
 

Private Attributes

value_
 Value.
 

Detailed Description

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

Custom variant value implementation.


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