A helper class that uses Resource Acquisition Is Initialization (RAII) to hold a communicator instance, and automatically destroy this instance when the holder goes out of scope. More...
#include <Ice/Ice.h>
Public Member Functions | |
CommunicatorHolder ()=default | |
Default constructor. | |
CommunicatorHolder (CommunicatorHolder &&other)=default | |
Move constructor. | |
CommunicatorHolder (CommunicatorPtr communicator) noexcept | |
Constructs a CommunicatorHolder that adopts an existing communicator. | |
CommunicatorHolder (const CommunicatorHolder &)=delete | |
template<class... T> | |
CommunicatorHolder (T &&... args) | |
Constructs a CommunicatorHolder for a new communicator created using an Ice::initialize overload. | |
const CommunicatorPtr & | communicator () const noexcept |
Gets the communicator. | |
operator bool () const noexcept | |
Determines whether this holder holds a communicator. | |
const CommunicatorPtr & | operator-> () const noexcept |
Gets the communicator. | |
CommunicatorHolder & | operator= (CommunicatorHolder &&holder) noexcept |
Move assignment operator. | |
CommunicatorHolder & | operator= (CommunicatorPtr communicator) noexcept |
Assignment operator. | |
CommunicatorHolder & | operator= (const CommunicatorHolder &) noexcept=delete |
CommunicatorPtr | release () noexcept |
Gets the communicator and clears the reference held by the holder. |
A helper class that uses Resource Acquisition Is Initialization (RAII) to hold a communicator instance, and automatically destroy this instance when the holder goes out of scope.
Definition at line 356 of file Communicator.h.