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