|
EnTT 3.13.1
|
Scoped connection class. More...
#include <sigh.hpp>
Public Member Functions | |
| scoped_connection ()=default | |
| Default constructor. | |
| scoped_connection (const connection &other) | |
| Constructs a scoped connection from a basic connection. | |
| scoped_connection (const scoped_connection &)=delete | |
| Default copy constructor, deleted on purpose. | |
| scoped_connection (scoped_connection &&other) noexcept | |
| Move constructor. | |
| ~scoped_connection () | |
| Automatically breaks the link on destruction. | |
| scoped_connection & | operator= (const scoped_connection &)=delete |
| Default copy assignment operator, deleted on purpose. | |
| scoped_connection & | operator= (scoped_connection &&other) noexcept |
| Move assignment operator. | |
| scoped_connection & | operator= (connection other) |
| Acquires a connection. | |
| operator bool () const noexcept | |
| Checks whether a scoped connection is properly initialized. | |
| 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 |
|
inlinenoexcept |
|
inline |
|
inlineexplicitnoexcept |
|
inline |
|
delete |
Default copy assignment operator, deleted on purpose.
|
inlinenoexcept |
|
inline |