cppexpose  1.0.0.b785e04f23b8
C++ library for type introspection, reflection, and scripting interface
Public Member Functions | Protected Attributes | List of all members
cppexpose::ScopedConnection Class Reference

Tool to maintain a connection within a certain scope. More...

#include <cppexpose/include/cppexpose/signal/ScopedConnection.h>

Collaboration diagram for cppexpose::ScopedConnection:
Collaboration graph
[legend]

Public Member Functions

 ScopedConnection ()
 Constructor. More...
 
 ScopedConnection (const Connection &connection)
 Constructor. More...
 
 ScopedConnection (const ScopedConnection &)=delete
 Copy Constructor (deleted) More...
 
 ScopedConnection (ScopedConnection &&other)
 Move Constructor. More...
 
 ~ScopedConnection ()
 Destructor. More...
 
ScopedConnectionoperator= (const Connection &connection)
 Assign connection. More...
 
ScopedConnectionoperator= (const ScopedConnection &)=delete
 Assignment operator (deleted) More...
 
ScopedConnectionoperator= (ScopedConnection &&other)
 Move operator. More...
 

Protected Attributes

Connection m_connection
 Connection that is held. More...
 

Detailed Description

Tool to maintain a connection within a certain scope.

Constructor & Destructor Documentation

cppexpose::ScopedConnection::ScopedConnection ( )

Constructor.

cppexpose::ScopedConnection::ScopedConnection ( const Connection connection)

Constructor.

Parameters
[in]connectionConnection that is held
cppexpose::ScopedConnection::ScopedConnection ( const ScopedConnection )
delete

Copy Constructor (deleted)

cppexpose::ScopedConnection::ScopedConnection ( ScopedConnection &&  other)

Move Constructor.

Parameters
[in]otherScoped connection
cppexpose::ScopedConnection::~ScopedConnection ( )

Destructor.

Member Function Documentation

ScopedConnection& cppexpose::ScopedConnection::operator= ( const Connection connection)

Assign connection.

Parameters
[in]connectionConnection that is held
ScopedConnection& cppexpose::ScopedConnection::operator= ( const ScopedConnection )
delete

Assignment operator (deleted)

ScopedConnection& cppexpose::ScopedConnection::operator= ( ScopedConnection &&  other)

Move operator.

Parameters
[in]otherScoped connection
Returns
Reference to this object

Member Data Documentation

Connection cppexpose::ScopedConnection::m_connection
protected

Connection that is held.


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