represents a connection to a signal More...
#include <ndn-cxx/util/signal/connection.hpp>
Public Member Functions | |
constexpr | Connection () noexcept=default |
void | disconnect () |
disconnects from the signal More... | |
bool | isConnected () const noexcept |
check if connected to the signal More... | |
bool | operator!= (const Connection &other) const |
bool | operator== (const Connection &other) const |
compare for equality More... | |
Friends | |
template<typename Owner , typename... TArgs> | |
class | Signal |
represents a connection to a signal
Definition at line 34 of file connection.hpp.
|
defaultnoexcept |
void ndn::util::signal::Connection::disconnect | ( | ) |
disconnects from the signal
Definition at line 36 of file connection.cpp.
|
noexcept |
check if connected to the signal
Definition at line 45 of file connection.cpp.
bool ndn::util::signal::Connection::operator!= | ( | const Connection & | other | ) | const |
Definition at line 59 of file connection.cpp.
bool ndn::util::signal::Connection::operator== | ( | const Connection & | other | ) | const |
compare for equality
Two connections are equal if they both refer to the same connection that isn't disconnected, or they are both disconnected.
Definition at line 51 of file connection.cpp.
|
friend |
Definition at line 73 of file connection.hpp.