You.i Engine
CYIEventTargetProxy Class Reference

Detailed Description

A class used to proxy access to a CYIEventTarget.

Instances of this class are used to provide access to a CYIEventTarget instance when the lifetime of the target is unknown. The CYIEventTargetProxy instances are accessed from a CYIEventTarget instance and held in a shared pointer. If the target is deleted, the proxy is updated and its target reference is set to nullptr.

See also
CYIEventTarget::GetProxy()

#include <event/YiEventTargetProxy.h>

Public Member Functions

 CYIEventTargetProxy (CYIEventTarget *pEventTarget)
 
CYIEventTargetGetEventTarget () const
 

Friends

class CYIEventTarget
 

Constructor & Destructor Documentation

◆ CYIEventTargetProxy()

CYIEventTargetProxy::CYIEventTargetProxy ( CYIEventTarget pEventTarget)

Member Function Documentation

◆ GetEventTarget()

CYIEventTarget* CYIEventTargetProxy::GetEventTarget ( ) const

Returns the event target that is proxied by this object. Event targets set this to nullptr on their associated proxy object when they are deleted.

Friends And Related Function Documentation

◆ CYIEventTarget

friend class CYIEventTarget
friend

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