You.i Engine
CYIEventFilterProxy Class Reference

Detailed Description

Proxy for a CYIEventFilter allowing safe destruction of the internal event filter objects.

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

#include <event/YiEventFilterProxy.h>

Public Member Functions

 CYIEventFilterProxy ()
 
bool PreFilterEvent (const std::shared_ptr< CYIEventDispatcher > &pDispatcher, CYIEvent *pEvent, CYIEventHandler *pDestination)
 
bool PostFilterEvent (const std::shared_ptr< CYIEventDispatcher > &pDispatcher, CYIEvent *pEvent, CYIEventHandler *pDestination)
 

Friends

class CYIEventHandler
 
class CYIEventFilter
 
class CYIEventDispatcher
 

Constructor & Destructor Documentation

◆ CYIEventFilterProxy()

CYIEventFilterProxy::CYIEventFilterProxy ( )

Member Function Documentation

◆ PostFilterEvent()

bool CYIEventFilterProxy::PostFilterEvent ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent,
CYIEventHandler pDestination 
)

◆ PreFilterEvent()

bool CYIEventFilterProxy::PreFilterEvent ( const std::shared_ptr< CYIEventDispatcher > &  pDispatcher,
CYIEvent pEvent,
CYIEventHandler pDestination 
)

Friends And Related Function Documentation

◆ CYIEventDispatcher

friend class CYIEventDispatcher
friend

◆ CYIEventFilter

friend class CYIEventFilter
friend

◆ CYIEventHandler

friend class CYIEventHandler
friend

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