![]() |
Home | Libraries | People | FAQ | More |
boost::signals2::connection — Query/disconnect a signal-slot connection.
// In header: <boost/signals2/connection.hpp> class connection { public: // construct/copy/destruct (); (connection&); (connection&&); connection& (connection&); connection& (connection&&); // connection management () ; () ; // blocking () ; // modifiers (connection&); // comparisons (connection&) ; (connection&) ; (connection&) ; }; // specialized algorithms (connection&, connection&);
The signals2::connection class represents a connection between a Signal and a Slot. It is a lightweight object that has the ability to query whether the signal and slot are currently connected, and to disconnect the signal and slot. It is always safe to query or disconnect a connection.
The methods of the connection
class are thread-safe with the exception
of swap and the assignment operator. A connection
object
should not be accessed concurrently when either of these operations is in progress.
However, it is always safe to access a different connection
object
in another thread, even if the two connection
objects are copies
of each other which refer to the same underlying connection.
connection
public
construct/copy/destruct();
Effects: |
Sets the currently represented connection to the NULL connection. |
Postconditions: |
|
Throws: |
Will not throw. |
(connection& other);
Effects: |
|
Throws: |
Will not throw. |
(connection&& other);
Move constructor.
Effects: |
|
Throws: |
Will not throw. |
connection& (connection& rhs);
Effects: |
|
Throws: |
Will not throw. |
connection& (connection&& rhs);
Move assignment.
Effects: |
|
Throws: |
Will not throw. |
connection
blocking() ;
Queries if the connection is blocked. A connection may be blocked by creating a
boost::signals2::shared_connection_block
object.
Returns: |
|
Throws: |
Will not throw. |
connection
modifiers(connection& other);
Effects: |
Swaps the connections referenced in
|
Throws: |
Will not throw. |
connection
comparisons(connection& other) ;
Returns: |
|
Throws: |
Will not throw. |
(connection& other) ;
Returns: |
|
Throws: |
Will not throw. |
(connection& other) ;
Returns: |
|
Throws: |
Will not throw. |
connection
specialized algorithms(connection& x, connection& y);
Effects: |
|
Throws: |
Will not throw. |