|
RTC Toolkit 5.1.0
|
RAII wrapper class used to manage the life-time of individual subscriptions. More...
#include <rtctk/componentFramework/repositorySubscriberIf.hpp>
Public Types | |
| using | UnsubscribeMethod = std::function<void()> |
Public Member Functions | |
| Subscription (UnsubscribeMethod) | |
| ~Subscription () | |
| Subscription (const Subscription &)=delete | |
| Subscription & | operator= (const Subscription &)=delete |
| Subscription (Subscription &&) noexcept | |
| Subscription & | operator= (Subscription &&) noexcept |
| void | Unsubscribe () |
RAII wrapper class used to manage the life-time of individual subscriptions.
A subscription can be prematurely stopped when Unsubscribe is called, otherwise it is stopped automatically when the subscription object is destroyed. The user can assume that no more callbacks will arrive after Unsubscribe or the destructor returns.
| using rtctk::componentFramework::RepositorySubscriberIf::Subscription::UnsubscribeMethod = std::function<void()> |
|
explicit |
| rtctk::componentFramework::RepositorySubscriberIf::Subscription::~Subscription | ( | ) |
|
delete |
|
noexcept |
|
delete |
|
noexcept |
| void rtctk::componentFramework::RepositorySubscriberIf::Subscription::Unsubscribe | ( | ) |