![]() |
ezEngine
Release 25.03
|
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 ezRTTI * | m_pType = nullptr |
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.