Clementine
|
Scoped connection class. More...
#include <entt.hpp>
Public Member Functions | |
scoped_connection ()=default | |
Default constructor. | |
scoped_connection (const connection &other) | |
Constructs a scoped connection from a basic connection. More... | |
scoped_connection (const scoped_connection &)=delete | |
Default copy constructor, deleted on purpose. | |
~scoped_connection () | |
Automatically breaks the link on destruction. | |
scoped_connection & | operator= (const scoped_connection &)=delete |
Default copy assignment operator, deleted on purpose. More... | |
scoped_connection & | operator= (connection other) |
Acquires a connection. More... | |
operator bool () const ENTT_NOEXCEPT | |
Checks whether a scoped connection is properly initialized. More... | |
void | release () |
Breaks the connection. | |
Scoped connection class.
Opaque object the aim of which is to allow users to release an already estabilished connection without having to keep a reference to the signal or the sink that generated it.
A scoped connection automatically breaks the link between the two objects when it goes out of scope.
|
inline |
Constructs a scoped connection from a basic connection.
other | A valid connection object. |
|
inlineexplicit |
Checks whether a scoped connection is properly initialized.
|
delete |
Default copy assignment operator, deleted on purpose.
|
inline |
Acquires a connection.
other | The connection object to acquire. |