ezEngine Release 26.9
Loading...
Searching...
No Matches
ezDocumentObject Class Referenceabstract
Inheritance diagram for ezDocumentObject:

Public Member Functions

const ezUuid & GetGuid () const
 
const ezRTTI * GetType () const
 Returns the RTTI type of the object that is represented by this ezDocumentObject.
 
const ezDocumentObjectManager * GetDocumentObjectManager () const
 
ezDocumentObjectManager * GetDocumentObjectManager ()
 
virtual const ezIReflectedTypeAccessor & GetTypeAccessor () const =0
 
ezIReflectedTypeAccessor & GetTypeAccessor ()
 
const ezDocumentObject * GetParent () const
 
virtual void InsertSubObject (ezDocumentObject *pObject, ezStringView sProperty, const ezVariant &index)
 
virtual void RemoveSubObject (ezDocumentObject *pObject)
 
void ComputeObjectHash (ezUInt64 &ref_uiHash) const
 
const ezHybridArray< ezDocumentObject *, 8 > & GetChildren () const
 
ezDocumentObject * GetChild (const ezUuid &guid)
 
const ezDocumentObject * GetChild (const ezUuid &guid) const
 
ezStringView GetParentProperty () const
 
const ezAbstractProperty * GetParentPropertyType () const
 
ezVariant GetPropertyIndex () const
 
bool IsOnHeap () const
 
ezUInt32 GetChildIndex (const ezDocumentObject *pChild) const
 

Protected Attributes

ezUuid m_Guid
 
ezDocumentObjectManager * m_pDocumentObjectManager = nullptr
 
ezDocumentObject * m_pParent = nullptr
 
ezHybridArray< ezDocumentObject *, 8 > m_Children
 
ezString m_sParentProperty
 

Friends

class ezDocumentObjectManager
 

Member Function Documentation

◆ IsOnHeap()

bool ezDocumentObject::IsOnHeap ( ) const
Todo:
Christopher: This crashes when the pointer is nullptr, which appears to be possible It happened for me when duplicating (CTRL+D) 2 objects 2 times then moving them and finally undoing everything

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