This class is a useful utility to "link" multiple objects around.
More...
#include <C_subscription.hpp>
This class is a useful utility to "link" multiple objects around.
By inheriting from this class, you will be able to subscribe to a Subscription like a CallbackHandler and you don't have to worry about unsubscribing it when the object is destroyed.
- See also
- Subscription
◆ Subscriber() [1/2]
- Warning
- Empty copy constructor as it's not permitted (does nothing)
◆ Subscriber() [2/2]
- Warning
- Move constructor prohibited
◆ ~Subscriber()
virtual fge::Subscriber::~Subscriber |
( |
| ) |
|
|
inlinevirtual |
When the object is destroyed, it will detach from all subscriptions.
◆ detach()
Detach from a specific subscription.
- Parameters
-
◆ detachAll()
void fge::Subscriber::detachAll |
( |
| ) |
|
Detach from all subscriptions.
◆ onDetach()
Callback called when a subscription is detached.
- Parameters
-
subscription | The subscription that was detached |
◆ operator=() [1/2]
- Warning
- Move operator prohibited
◆ operator=() [2/2]
- Warning
- Empty copy operator as it's not permitted (does nothing)
The documentation for this class was generated from the following file: