OpenLexocad
28.0
|
Scoped connection class. More...
#include <entt.hpp>
Public Member Functions | |
scoped_connection ()=default | |
Default constructor. More... | |
scoped_connection (const connection &conn) | |
Constructs a scoped connection from a basic connection. More... | |
scoped_connection (const scoped_connection &)=delete | |
Default copy constructor, deleted on purpose. More... | |
scoped_connection (scoped_connection &&)=default | |
Default move constructor. More... | |
~scoped_connection () | |
Automatically breaks the link on destruction. More... | |
scoped_connection & | operator= (const scoped_connection &)=delete |
Default copy assignment operator, deleted on purpose. More... | |
scoped_connection & | operator= (scoped_connection &&)=default |
Default move assignment operator. More... | |
scoped_connection & | operator= (const connection &other) |
Copies a connection. More... | |
scoped_connection & | operator= (connection &&other) |
Moves a connection. More... | |
void | release () |
Breaks the connection. More... | |
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.
|
default |
Default constructor.
|
inline |
Constructs a scoped connection from a basic connection.
conn | A valid connection object. |
|
delete |
Default copy constructor, deleted on purpose.
|
default |
Default move constructor.
|
inline |
Automatically breaks the link on destruction.
|
inline |
Moves a connection.
other | The connection object to move. |
|
inline |
Copies a connection.
other | The connection object to copy. |
|
delete |
Default copy assignment operator, deleted on purpose.
|
default |
Default move assignment operator.
|
inline |
Breaks the connection.