properties-cpp 0.0.1
A very simple convenience library for handling properties and signals in C++11.
core::ScopedConnection Class Reference

Scoped helper class to map signal-slot connection mgmt. to RAII. More...

#include <connection.h>

+ Collaboration diagram for core::ScopedConnection:

Public Member Functions

 ScopedConnection (const Connection &c)
 Constructs an instance for an existing signal-slot connection.
 
 ScopedConnection (ScopedConnection &&rhs)
 
 ScopedConnection (const ScopedConnection &)=delete
 
 ~ScopedConnection () noexcept(true)
 Disconnects the signal-slot connection.
 
ScopedConnectionoperator= (ScopedConnection &&rhs)
 
ScopedConnectionoperator= (const ScopedConnection &)=delete
 
bool operator== (const ScopedConnection &)=delete
 
bool operator< (const ScopedConnection &rhs) const
 

Detailed Description

Scoped helper class to map signal-slot connection mgmt. to RAII.

Definition at line 141 of file connection.h.

Constructor & Destructor Documentation

◆ ScopedConnection() [1/3]

core::ScopedConnection::ScopedConnection ( const Connection c)
inline

Constructs an instance for an existing signal-slot connection.

Parameters
cThe existing signal-slot connection.

Definition at line 148 of file connection.h.

◆ ScopedConnection() [2/3]

core::ScopedConnection::ScopedConnection ( ScopedConnection &&  rhs)
inline

Definition at line 152 of file connection.h.

◆ ScopedConnection() [3/3]

core::ScopedConnection::ScopedConnection ( const ScopedConnection )
delete

◆ ~ScopedConnection()

core::ScopedConnection::~ScopedConnection ( )
inlinenoexcept

Disconnects the signal-slot connection.

Definition at line 161 of file connection.h.

References core::Connection::disconnect().

+ Here is the call graph for this function:

Member Function Documentation

◆ operator<()

bool core::ScopedConnection::operator< ( const ScopedConnection rhs) const
inline

Definition at line 180 of file connection.h.

◆ operator=() [1/2]

ScopedConnection & core::ScopedConnection::operator= ( const ScopedConnection )
delete

◆ operator=() [2/2]

ScopedConnection & core::ScopedConnection::operator= ( ScopedConnection &&  rhs)
inline

Definition at line 171 of file connection.h.

◆ operator==()

bool core::ScopedConnection::operator== ( const ScopedConnection )
delete

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