|
CppWAMP
C++11 client library for the WAMP protocol
|
Limits a Subscription's lifetime to a particular scope. More...
#include <cppwamp/subscription.hpp>

Public Member Functions | |
| ScopedSubscription () | |
| Default constructs an empty ScopedSubscription. | |
| ScopedSubscription (ScopedSubscription &&other) noexcept | |
| Move constructor. | |
| ScopedSubscription (Subscription subscription) | |
| Converting constructor taking a Subscription object to manage. | |
| ~ScopedSubscription () | |
| Destructor which automatically unsubscribes the subscription. | |
| ScopedSubscription & | operator= (ScopedSubscription &&other) noexcept |
| Move assignment. | |
| ScopedSubscription & | operator= (Subscription subscription) |
| Assigns another Subscription to manage. More... | |
| void | release () |
| Releases the subscription so that it will no longer be automatically unsubscribed if the ScopedSubscription is destroyed or reassigned. | |
| ScopedSubscription (const ScopedSubscription &)=delete | |
| Non-copyable. | |
| ScopedSubscription & | operator= (const ScopedSubscription &)=delete |
| Non-copyable. | |
Public Member Functions inherited from wamp::Subscription | |
| Subscription () | |
| Constructs an empty subscription. More... | |
| Subscription (const Subscription &other) | |
| Copy constructor. | |
| Subscription (Subscription &&other) noexcept | |
| Move constructor. More... | |
| operator bool () const | |
| Returns false if the subscription is empty. | |
| SubscriptionId | id () const |
| Obtains the ID number of this subscription. | |
| Subscription & | operator= (const Subscription &other) |
| Copy assignment. | |
| Subscription & | operator= (Subscription &&other) noexcept |
| Move assignment. More... | |
| void | unsubscribe () const |
| Unsubscribes from the topic. | |
Limits a Subscription's lifetime to a particular scope.
| ScopedSubscription & wamp::ScopedSubscription::operator= | ( | Subscription | subscription | ) |
Assigns another Subscription to manage.
The old subscription is automatically unsubscribed.