XII Release 0.1.0
Loading...
Searching...
No Matches
xiiEventBase< EventData, MutexType, EventType >::Unsubscriber Class Reference

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

Friends

class xiiEventBase< EventData, MutexType, EventType >
 

Detailed Description

template<typename EventData, typename MutexType, xiiEventType EventType>
class xiiEventBase< EventData, MutexType, EventType >::Unsubscriber

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