22 #ifndef NDN_UTIL_SIGNAL_SCOPED_CONNECTION_HPP 23 #define NDN_UTIL_SIGNAL_SCOPED_CONNECTION_HPP 102 #endif // NDN_UTIL_SIGNAL_SCOPED_CONNECTION_HPP
represents a connection to a signal
Disconnects a Connection automatically upon destruction.
void release() noexcept
Release the connection so that it won't be disconnected when this ScopedConnection is destructed...
bool isConnected() const noexcept
Check if the connection is connected to the signal.
void disconnect()
Manually disconnect the connection.
ScopedConnection & operator=(const ScopedConnection &)=delete
constexpr ScopedConnection() noexcept=default
~ScopedConnection()
Destructor, automatically disconnects the connection.