class ScriptUndoableOperationWrapperBase

Provides a root base class to use for TScriptNonReflectableWrapper implementations.

Ensures all derived types have a common base class that holds the native object of the root type in the class hierarchy.

Public

Methods

GetBaseNativeObjectAsShared

const SPtr<NativeType> &GetBaseNativeObjectAsShared() const

Returns the root base class of the wrapped native object as a shared pointer.

IsNativeObjectValid

bool IsNativeObjectValid() const

Checks is the native object alive and valid.

Protected

Methods

NotifyNativeObjectDestroyed

void NotifyNativeObjectDestroyed() override

Notifies the wrapper that the native object it is managing is about to be destroyed.

Fields

mNativeObjectStrongHandle

SPtr<NativeType> mNativeObjectStrongHandle