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 ( )

Member Function Documentation

bool CYIEventHandlerProxy::HandleEvent ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 
)
bool CYIEventHandlerProxy::PostFilter ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 
)
bool CYIEventHandlerProxy::PreFilter ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent 
)
bool CYIEventHandlerProxy::RegisterEventFilter ( CYIEventFilter pFilter)
bool CYIEventHandlerProxy::UnregisterEventFilter ( CYIEventFilter pFilter)

Friends And Related Function Documentation

friend class CYIEventDispatcher
friend
friend class CYIEventHandler
friend

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