KDBindings API Documentation
1.0.95
|
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected. More...
#include <connection_handle.h>
Public Member Functions | |
ScopedConnection ()=default | |
A ScopedConnection can be default constructed. More... | |
ScopedConnection (ConnectionHandle &&h) noexcept | |
ScopedConnection (const ScopedConnection &)=delete | |
ScopedConnection (ScopedConnection &&) noexcept=default | |
~ScopedConnection () noexcept | |
ConnectionHandle & | handle () |
const ConnectionHandle & | handle () const |
ConnectionHandle * | operator-> () |
const ConnectionHandle * | operator-> () const |
ScopedConnection & | operator= (ConnectionHandle &&h) noexcept |
ScopedConnection & | operator= (const ScopedConnection &)=delete |
ScopedConnection & | operator= (ScopedConnection &&other) noexcept |
A ScopedConnection is a RAII-style way to make sure a Connection is disconnected.
When the ScopedConnections scope ends, the connection this ScopedConnection guards will be disconnected.
Example:
Definition at line 239 of file connection_handle.h.
|
default |
A ScopedConnection can be default constructed.
A default constructed ScopedConnection has no connection to guard. Therefore it does nothing when it is destructed, unless a ConnectionHandle is assigned to it.
|
defaultnoexcept |
A ScopedConnection can be move constructed
|
delete |
A ScopedConnection cannot be copied
|
inlinenoexcept |
A ScopedConnection can be constructed from a ConnectionHandle
Definition at line 269 of file connection_handle.h.
|
inlinenoexcept |
When a ConnectionHandle is destructed it disconnects the connection it guards.
Definition at line 320 of file connection_handle.h.
|
inline |
Definition at line 285 of file connection_handle.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 293 of file connection_handle.h.
|
inline |
Convenience access to the underlying ConnectionHandle using the ->
operator.
Definition at line 301 of file connection_handle.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 309 of file connection_handle.h.
|
inlinenoexcept |
A ScopedConnection can be assigned from a ConnectionHandle
Definition at line 277 of file connection_handle.h.
|
delete |
A ScopedConnection cannot be copied
|
inlinenoexcept |
A ScopedConnection can be move assigned
Definition at line 259 of file connection_handle.h.