ezEngine  Release 25.03
ezTypedObject Struct Reference

Defines a reference to an immutable object owned by an ezVariant. More...

#include <Variant.h>

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
bool operator== (const ezTypedObject &rhs) const
 
 EZ_ADD_DEFAULT_OPERATOR_NOTEQUAL (const ezTypedObject &)
 

Public Attributes

const void * m_pObject = nullptr
 
const ezRTTIm_pType = nullptr
 

Detailed Description

Defines a reference to an immutable object owned by an ezVariant.

Used to store custom types inside an ezVariant. As lifetime is governed by the ezVariant, it is generally not safe to store an ezTypedObject. This class is needed to be able to differentiate between ezVariantType::TypedPointer and ezVariantType::TypedObject e.g. in ezVariant::DispatchTo.

See also
ezVariant, EZ_DECLARE_CUSTOM_VARIANT_TYPE

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