You.i Engine
CYIDeferredDeletionEventHandler Class Reference

Detailed Description

Handles events where data deletion needs to be deferred.

The deletion will take place when CYIEventDispatcher::ProcessAllEvents() is called in CYIAppPriv::OnUpdate().

#include <event/YiDeferredDeletionEventHandler.h>

Inheritance diagram for CYIDeferredDeletionEventHandler:

Public Member Functions

virtual bool HandleEvent (const std::shared_ptr< CYIEventDispatcher > &pDispatcher, CYIEvent *pEvent) override
- Public Member Functions inherited from CYIEventHandler
 CYIEventHandler ()
 CYIEventHandler (const CYIEventHandler &)
virtual ~CYIEventHandler ()
CYIEventHandleroperator= (const CYIEventHandler &)
bool RegisterEventFilter (CYIEventFilter *pFilter)
bool UnregisterEventFilter (CYIEventFilter *pFilter)
bool PreFilter (const std::shared_ptr< CYIEventDispatcher > &pDispatcher, CYIEvent *pEvent)
bool PostFilter (const std::shared_ptr< CYIEventDispatcher > &pDispatcher, CYIEvent *pEvent)
bool AreEventsEnabled () const
void EnableEvents (bool enable)

Additional Inherited Members

- Protected Attributes inherited from CYIEventHandler
bool m_enableEvents

Member Function Documentation

◆ HandleEvent()

virtual bool CYIDeferredDeletionEventHandler::HandleEvent ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 

Performs the data deletion. Returns true if the event is of type CYIEvent::Type::DeferredDeletion and false otherwise.

Implements CYIEventHandler.

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