represents a connection to a signal More...
#include <signal-connection.hpp>
Public Member Functions | |
Connection () | |
void | disconnect () |
disconnects from the signal More... | |
bool | isConnected () const |
check if connected to the signal More... | |
bool | operator== (const Connection &other) const |
compare for equality More... | |
bool | operator!= (const Connection &other) const |
Friends | |
template<typename Owner , typename ... TArgs> | |
class | Signal |
represents a connection to a signal
Definition at line 34 of file signal-connection.hpp.
ndn::util::signal::Connection::Connection | ( | ) |
Definition at line 30 of file signal-connection.cpp.
References disconnect().
void ndn::util::signal::Connection::disconnect | ( | ) |
disconnects from the signal
Definition at line 40 of file signal-connection.cpp.
Referenced by Connection(), ndn::util::signal::ScopedConnection::disconnect(), ndn::util::signal::ScopedConnection::operator=(), and ndn::util::signal::ScopedConnection::~ScopedConnection().
bool ndn::util::signal::Connection::isConnected | ( | ) | const |
check if connected to the signal
Definition at line 49 of file signal-connection.cpp.
Referenced by ndn::util::signal::ScopedConnection::isConnected().
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 55 of file signal-connection.cpp.
Referenced by operator!=().
bool ndn::util::signal::Connection::operator!= | ( | const Connection & | other | ) | const |
Definition at line 63 of file signal-connection.cpp.
References operator==().
|
friend |
Definition at line 72 of file signal-connection.hpp.