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

#include <event/YiEventTargetProxy.h>

Inheritance diagram for CYIEventTargetProxy:

Public Member Functions

 CYIEventTargetProxy (CYIEventTarget *pEventTarget)
const CYIEventTargetGetEventTarget () const
CYIEventTargetGetEventTarget ()


class CYIEventTarget

Constructor & Destructor Documentation

◆ CYIEventTargetProxy()

CYIEventTargetProxy::CYIEventTargetProxy ( CYIEventTarget pEventTarget)

Member Function Documentation

◆ GetEventTarget() [1/2]

const 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.

◆ GetEventTarget() [2/2]

CYIEventTarget* CYIEventTargetProxy::GetEventTarget ( )

Friends And Related Function Documentation

◆ CYIEventTarget

friend class CYIEventTarget

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