ezEngine  Release 25.03
ezEventBase< EventData, MutexType, EventType >::Unsubscriber Class Reference

An object that can be passed to ezEvent::AddEventHandler to store the subscription information and automatically remove the event handler upon destruction. More...

#include <Event.h>

Public Member Functions

 Unsubscriber (Unsubscriber &&other)
 
void operator= (Unsubscriber &&other)
 
void Unsubscribe ()
 If the unsubscriber holds a valid subscription, it will be removed from the target ezEvent.
 
bool IsSubscribed () const
 Checks whether this unsubscriber has a valid subscription.
 
void Clear ()
 Resets the unsubscriber. Use when the target ezEvent may have been destroyed and automatic unsubscription cannot be executed anymore.
 

Friends

class ezEventBase< EventData, MutexType, EventType >
 

Detailed Description

template<typename EventData, typename MutexType, ezEventType EventType>
class ezEventBase< EventData, MutexType, EventType >::Unsubscriber

An object that can be passed to ezEvent::AddEventHandler to store the subscription information and automatically remove the event handler upon destruction.


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