28 #if NDN_CXX_HAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE 29 static_assert(std::is_nothrow_move_constructible<ScopedConnection>::value,
30 "ScopedConnection must be MoveConstructible with noexcept");
31 #endif // NDN_CXX_HAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE 38 : m_connection(connection)
43 : m_connection(other.m_connection)
51 if (m_connection != connection) {
53 m_connection = connection;
Copyright (c) 2013-2017 Regents of the University of California.
~ScopedConnection() noexcept
disconnects the connection
bool isConnected() const
check if the connection is connected to the signal
represents a connection to a signal
ScopedConnection & operator=(const Connection &connection)
assigns a connection
void disconnect()
disconnects from the signal
void release()
releases the connection so that it won't be disconnected when this ScopedConnection is destructed ...
bool isConnected() const
check if connected to the signal
disconnects a Connection automatically upon destruction
void disconnect()
disconnects the connection manually