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

#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 ()

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.

Member Function Documentation

◆ Clear()

template<typename EventData, typename MutexType, xiiEventType EventType>
void xiiEventBase< EventData, MutexType, EventType >::Unsubscriber::Clear ( )
inline

Resets the unsubscriber. Use when the target xiiEvent may have been destroyed and automatic unsubscription cannot be executed anymore.


The documentation for this class was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Communication/Event.h