CppWAMP
C++11 client library for the WAMP protocol
wamp::Registration Class Reference

Represents a remote procedure registration. More...

#include <cppwamp/registration.hpp>

Inheritance diagram for wamp::Registration:

Public Member Functions

 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.
 
Registrationoperator= (const Registration &other)
 Copy assignment.
 
Registrationoperator= (Registration &&other) noexcept
 Move assignment. More...
 
void unregister () const
 Unregisters the RPC.
 

Detailed Description

Represents a remote procedure registration.

A Registration is a lightweight object returned by the enroll member functions of the Session family of classes. This objects allows users to unregister the RPC registration.

It is always safe to unregister via a Registration object. If the Session or the registration no longer exists, an unregister operation effectively does nothing.

See also
ScopedRegistration, Session::enroll

Constructor & Destructor Documentation

◆ Registration() [1/2]

wamp::Registration::Registration ( )

Constructs an empty registration.

Postcondition
!!(*this) == false

◆ Registration() [2/2]

wamp::Registration::Registration ( Registration &&  other)
noexcept

Move constructor.

Postcondition
!other == true

Member Function Documentation

◆ operator=()

Registration & wamp::Registration::operator= ( Registration &&  other)
noexcept

Move assignment.

Postcondition
!other == true

The documentation for this class was generated from the following files: