CppWAMP
C++11 client library for the WAMP protocol
|
Limits a Registration's lifetime to a particular scope. More...
#include <cppwamp/registration.hpp>
Public Member Functions | |
ScopedRegistration () | |
Default constructs an empty ScopedRegistration. | |
ScopedRegistration (ScopedRegistration &&other) noexcept | |
Move constructor. | |
ScopedRegistration (Registration registration) | |
Converting constructor taking a Registration object to manage. | |
~ScopedRegistration () | |
Destructor which automatically unsubscribes the subscription. | |
ScopedRegistration & | operator= (ScopedRegistration &&other) noexcept |
Move assignment. | |
ScopedRegistration & | operator= (Registration subscription) |
Assigns another Regisration to manage. More... | |
void | release () |
Releases the registration so that it will no longer be automatically unregistered if the ScopedRegistration is destroyed or reassigned. | |
ScopedRegistration (const ScopedRegistration &)=delete | |
Non-copyable. | |
ScopedRegistration & | operator= (const ScopedRegistration &)=delete |
Non-copyable. | |
![]() | |
Registration () | |
Constructs an empty registration. More... | |
Registration (const Registration &other) | |
Copy constructor. | |
Registration (Registration &&other) noexcept | |
Move constructor. More... | |
operator bool () const | |
Returns false if the registration is empty. | |
RegistrationId | id () const |
Obtains the ID number of this registration. | |
Registration & | operator= (const Registration &other) |
Copy assignment. | |
Registration & | operator= (Registration &&other) noexcept |
Move assignment. More... | |
void | unregister () const |
Unregisters the RPC. | |
Limits a Registration's lifetime to a particular scope.
ScopedRegistration & wamp::ScopedRegistration::operator= | ( | Registration | subscription | ) |
Assigns another Regisration to manage.
The old registration is automatically unregistered.