Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | List of all members
btcsignals::signal< Signature, Combiner >::connection_holder Struct Reference
Inheritance diagram for btcsignals::signal< Signature, Combiner >::connection_holder:
[legend]
Collaboration diagram for btcsignals::signal< Signature, Combiner >::connection_holder:
[legend]

Public Member Functions

template<typename Callable >
 connection_holder (Callable &&callback)
 
std::shared_ptr< const function_type > callback () const
 Return the callback, or null if disconnected.
 
- Public Member Functions inherited from btcsignals::connection::liveness
bool connected () const
 

Additional Inherited Members

- Protected Member Functions inherited from btcsignals::connection::liveness
 liveness (std::shared_ptr< const void > callback)
 
std::shared_ptr< const void > load () const
 

Detailed Description

template<typename Signature, typename Combiner>
struct btcsignals::signal< Signature, Combiner >::connection_holder

Definition at line 202 of file btcsignals.h.

Constructor & Destructor Documentation

◆ connection_holder()

template<typename Callable >
btcsignals::signal< Signature, Combiner >::connection_holder::connection_holder ( Callable &&  callback)
inlineexplicit

Definition at line 204 of file btcsignals.h.

Member Function Documentation

◆ callback()

std::shared_ptr< const function_type > btcsignals::signal< Signature, Combiner >::connection_holder::callback ( ) const
inline

Return the callback, or null if disconnected.

The callback stays alive while the returned pointer is held.

Definition at line 211 of file btcsignals.h.

Here is the call graph for this function:

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