ezEngine Release 25.08
Loading...
Searching...
No Matches
ezApplyNativePropertyChangesContext Class Reference

The ezApplyNativePropertyChangesContext takes care of generating guids for native pointers that match those of the ezAbstractObjectGraph that was passed in. This allows native changes to be tracked and applied to the object graph at a later point. More...

#include <ApplyNativePropertyChangesContext.h>

Inheritance diagram for ezApplyNativePropertyChangesContext:

Public Member Functions

 ezApplyNativePropertyChangesContext (ezRttiConverterContext &ref_source, const ezAbstractObjectGraph &originalGraph)
 
virtual ezUuid GenerateObjectGuid (const ezUuid &parentGuid, const ezAbstractProperty *pProp, ezVariant index, void *pObject) const override
 Generates a guid for a new object. Default implementation generates stable guids derived from parentGuid + property name + index and ignores the address of pObject.
 
- Public Member Functions inherited from ezRttiConverterContext
virtual void Clear ()
 
virtual ezInternal::NewInstance< void > CreateObject (const ezUuid &guid, const ezRTTI *pRtti)
 
virtual void DeleteObject (const ezUuid &guid)
 
virtual void RegisterObject (const ezUuid &guid, const ezRTTI *pRtti, void *pObject)
 
virtual void UnregisterObject (const ezUuid &guid)
 
virtual ezRttiConverterObject GetObjectByGUID (const ezUuid &guid) const
 
virtual ezUuid GetObjectGUID (const ezRTTI *pRtti, const void *pObject) const
 
virtual const ezRTTIFindTypeByName (ezStringView sName) const
 
template<typename T >
void GetObjectsByType (ezDynamicArray< T * > &out_objects, ezDynamicArray< ezUuid > *out_pUuids=nullptr)
 
virtual ezUuid EnqueObject (const ezUuid &guid, const ezRTTI *pRtti, void *pObject)
 
virtual ezRttiConverterObject DequeueObject ()
 
virtual void OnUnknownTypeError (ezStringView sTypeName)
 

Additional Inherited Members

- Protected Attributes inherited from ezRttiConverterContext
ezHashTable< ezUuid, ezRttiConverterObjectm_GuidToObject
 
ezHashTable< const void *, ezUuidm_ObjectToGuid
 
ezSet< ezUuidm_QueuedObjects
 

Detailed Description

The ezApplyNativePropertyChangesContext takes care of generating guids for native pointers that match those of the ezAbstractObjectGraph that was passed in. This allows native changes to be tracked and applied to the object graph at a later point.

See also
ezAbstractObjectGraph::ModifyNodeViaNativeCounterpart

Member Function Documentation

◆ GenerateObjectGuid()

ezUuid ezApplyNativePropertyChangesContext::GenerateObjectGuid ( const ezUuid parentGuid,
const ezAbstractProperty pProp,
ezVariant  index,
void *  pObject 
) const
overridevirtual

Generates a guid for a new object. Default implementation generates stable guids derived from parentGuid + property name + index and ignores the address of pObject.

Reimplemented from ezRttiConverterContext.


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