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

#include <Urho3D/Core/Variant.h>

Inheritance diagram for Urho3D::CustomVariantValue:
[legend]

Public Member Functions

 CustomVariantValue ()
 Construct empty.
 
virtual ~CustomVariantValue ()
 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.
 
virtual CustomVariantValueClone () const
 Clone.
 
virtual void Clone (void *dest) const
 Placement clone.
 
virtual unsigned GetSize () const
 Get size.
 
virtual bool Compare (const CustomVariantValue &rhs) const
 Compare to another custom value.
 
virtual bool IsZero () const
 Compare to zero.
 
virtual String ToString () const
 Convert custom value to string.
 

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.


The documentation for this class was generated from the following file:
  • Source/Urho3D/Core/Variant.h