![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Core/Signal.h>
Convenient scope guard class to temporarily block signals/connections so that observers are not notified. More...
Inheritance diagram for SignalBlocker:Convenient scope guard class to temporarily block signals/connections so that observers are not notified.
This class can be used wherever you would otherwise use a pair of calls to SignalImpl::setBlocked() or SignalConnection::setBlocked(). SignalBlocker blocks signals/connections in its constructor and resets the original state on destruction.
Public Member Functions | |
| SignalBlocker (SignalBase &signal) | |
| Temporarily block the notification of all observers connected to signal. | |
| SignalBlocker (SignalConnection &connection) | |
| Temporarily block the single signal-observer connection represented by connection. | |
| SignalBlocker (const SignalBase &signal, const SignalReceiver &receiver) | |
| Temporarily block all connections between signal and receiver. | |