22 #ifndef NDN_UTIL_SIGNAL_CONNECTION_HPP 23 #define NDN_UTIL_SIGNAL_CONNECTION_HPP 25 #include "../../common.hpp" 70 Connection(weak_ptr<
function<
void()>> disconnect) noexcept;
72 template<
typename Owner,
typename ...TArgs>
83 weak_ptr<function<void()>> m_disconnect;
90 #endif // NDN_UTIL_SIGNAL_CONNECTION_HPP bool operator!=(const Connection &other) const
Copyright (c) 2013-2017 Regents of the University of California.
constexpr Connection() noexcept=default
represents a connection to a signal
provides a lightweight signal / event system
void disconnect()
disconnects from the signal
bool operator==(const Connection &other) const
compare for equality
bool isConnected() const noexcept
check if connected to the signal