Plasma Engine  2.0
Loading...
Searching...
No Matches
plEventBase< EventData, MutexType, EventType >::Unsubscriber Class Reference

An object that can be passed to plEvent::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 plEvent.
 
bool IsSubscribed () const
 Checks whether this unsubscriber has a valid subscription.
 
void Clear ()
 Resets the unsubscriber. Use when the target plEvent may have been destroyed and automatic unsubscription cannot be executed anymore.
 

Friends

class plEventBase< EventData, MutexType, EventType >
 

Detailed Description

template<typename EventData, typename MutexType, plEventType EventType>
class plEventBase< EventData, MutexType, EventType >::Unsubscriber

An object that can be passed to plEvent::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: