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. More...
 
 ScopedConnection (ScopedConnection &&rhs)
 
 ScopedConnection (const ScopedConnection &)=delete
 
 ~ScopedConnection () noexcept(true)
 Disconnects the signal-slot connection. More...
 
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

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.

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

Definition at line 152 of file connection.h.

References core::Connection::ScopedConnection.

core::ScopedConnection::ScopedConnection ( const ScopedConnection )
delete
core::ScopedConnection::~ScopedConnection ( )
inlinenoexcept

Disconnects the signal-slot connection.

Definition at line 161 of file connection.h.

Member Function Documentation

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

Definition at line 180 of file connection.h.

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

Definition at line 171 of file connection.h.

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

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