You.i Engine
CYIEventHandlerProxy Class Reference

Detailed Description

Proxy for a CYIEventHandler allowing safe destruction of the internal event handler objects.

CYIEventHandlerProxy objects are stored as shared pointers in lists inside of CYIEventDispatcher so that deleting an event handler object leaves the proxy inside the list intact preventing dangling pointers.

#include <event/YiEventHandlerProxy.h>

Public Member Functions

 CYIEventHandlerProxy ()
 
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 HandleEvent (const std::shared_ptr< CYIEventDispatcher > &pDispatcher, CYIEvent *pEvent)
 

Friends

class CYIEventHandler
 
class CYIEventDispatcher
 

Constructor & Destructor Documentation

◆ CYIEventHandlerProxy()

CYIEventHandlerProxy::CYIEventHandlerProxy ( )

Member Function Documentation

◆ HandleEvent()

bool CYIEventHandlerProxy::HandleEvent ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 
)

◆ PostFilter()

bool CYIEventHandlerProxy::PostFilter ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 
)

◆ PreFilter()

bool CYIEventHandlerProxy::PreFilter ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 
)

◆ RegisterEventFilter()

bool CYIEventHandlerProxy::RegisterEventFilter ( CYIEventFilter pFilter)

◆ UnregisterEventFilter()

bool CYIEventHandlerProxy::UnregisterEventFilter ( CYIEventFilter pFilter)

Friends And Related Function Documentation

◆ CYIEventDispatcher

friend class CYIEventDispatcher
friend

◆ CYIEventHandler

friend class CYIEventHandler
friend

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