|
MetaImGUI 1.0.0
ImGui Application Template for C++20
|
RAII handle that owns a single subscription to a Signal. More...
#include <Signal.h>
Public Member Functions | |
| Connection ()=default | |
| Connection (const Connection &)=delete | |
| Connection & | operator= (const Connection &)=delete |
| Connection (Connection &&other) noexcept | |
| Connection & | operator= (Connection &&other) noexcept |
| ~Connection () | |
| void | Reset () |
| Disconnect now (idempotent). | |
| void | Release () |
| Detach without disconnecting — caller takes responsibility. | |
| bool | IsConnected () const noexcept |
Friends | |
| template<typename... Args> | |
| class | Signal |
RAII handle that owns a single subscription to a Signal.
A Connection disconnects automatically on destruction, on assignment, or via Reset(). It is move-only — copying would let two owners try to disconnect the same slot.
If the parent Signal is destroyed first, the Connection becomes a no-op: Reset() / destruction is safe.
|
default |
|
delete |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
delete |
|
inline |
|
inline |
Disconnect now (idempotent).
Definition at line 64 of file Signal.h.
Referenced by operator=(), and ~Connection().