GA::kit v0.3
G&A's in-house C++ application framework
Loading...
Searching...
No Matches
sigslot::scoped_connection Class Referencefinal

#include <sigslot.hpp>

Inheritance diagram for sigslot::scoped_connection:
sigslot::connection

Public Member Functions

 scoped_connection ()=default
 
 ~scoped_connection () override
 
 scoped_connection (const connection &c) noexcept
 
 scoped_connection (connection &&c) noexcept
 
 scoped_connection (const scoped_connection &) noexcept=delete
 
scoped_connectionoperator= (const scoped_connection &) noexcept=delete
 
 scoped_connection (scoped_connection &&o) noexcept
 
scoped_connectionoperator= (scoped_connection &&o) noexcept
 
- Public Member Functions inherited from sigslot::connection
 connection ()=default
 
virtual ~connection ()=default
 
 connection (const connection &) noexcept=default
 
connectionoperator= (const connection &) noexcept=default
 
 connection (connection &&) noexcept=default
 
connectionoperator= (connection &&) noexcept=default
 
bool valid () const noexcept
 
bool connected () const noexcept
 
bool disconnect () noexcept
 
bool blocked () const noexcept
 
void block () noexcept
 
void unblock () noexcept
 
connection_blocker blocker () const noexcept
 

Friends

template<typename , typename... >
class signal_base
 

Additional Inherited Members

- Protected Member Functions inherited from sigslot::connection
 connection (std::weak_ptr< detail::slot_state > s) noexcept
 
- Protected Attributes inherited from sigslot::connection
std::weak_ptr< detail::slot_statem_state
 

Detailed Description

scoped_connection is a RAII version of connection It disconnects the slot from the signal upon destruction.

Constructor & Destructor Documentation

◆ scoped_connection() [1/5]

sigslot::scoped_connection::scoped_connection ( )
default

◆ ~scoped_connection()

sigslot::scoped_connection::~scoped_connection ( )
inlineoverride

◆ scoped_connection() [2/5]

sigslot::scoped_connection::scoped_connection ( const connection c)
inlinenoexcept

◆ scoped_connection() [3/5]

sigslot::scoped_connection::scoped_connection ( connection &&  c)
inlinenoexcept

◆ scoped_connection() [4/5]

sigslot::scoped_connection::scoped_connection ( const scoped_connection )
deletenoexcept

◆ scoped_connection() [5/5]

sigslot::scoped_connection::scoped_connection ( scoped_connection &&  o)
inlinenoexcept

Member Function Documentation

◆ operator=() [1/2]

scoped_connection & sigslot::scoped_connection::operator= ( const scoped_connection )
deletenoexcept

◆ operator=() [2/2]

scoped_connection & sigslot::scoped_connection::operator= ( scoped_connection &&  o)
inlinenoexcept

Friends And Related Function Documentation

◆ signal_base

template<typename , typename... >
friend class signal_base
friend

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