VCCC  2024.05
VisualCamp Common C++ library
connection Class Reference

#include <vccc/__signal/connection.h>

+ Inheritance diagram for connection:

Public Member Functions

 connection ()=default
 
 connection (std::shared_ptr< connection_impl_base > ptr)
 
 connection (connection const &)=default
 
 connection (connection &&) noexcept=default
 
connectionoperator= (connection const &other)=default
 
connectionoperator= (connection &&other) noexcept=default
 
void disconnect () const
 
bool is_connected () const
 
connection track (std::weak_ptr< void > target) &&
 

Protected Attributes

std::shared_ptr< connection_impl_base > pimpl
 

Constructor & Destructor Documentation

◆ connection() [1/4]

connection ( )
default

◆ connection() [2/4]

connection ( std::shared_ptr< connection_impl_base >  ptr)
inlineexplicit

◆ connection() [3/4]

connection ( connection const &  )
default

◆ connection() [4/4]

connection ( connection &&  )
defaultnoexcept

Member Function Documentation

◆ disconnect()

void disconnect ( ) const
inline

Disconnect a given slot

◆ is_connected()

bool is_connected ( ) const
inline

◆ operator=() [1/2]

connection& operator= ( connection &&  other)
defaultnoexcept

◆ operator=() [2/2]

connection& operator= ( connection const &  other)
default

◆ track()

connection track ( std::weak_ptr< void >  target) &&
inline

Member Data Documentation

◆ pimpl

std::shared_ptr<connection_impl_base> pimpl
protected

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