LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Delegates the SlotClosure deletion decision to the signal handler. More...
#include "slotclosure.h"
Public Types | |
enum | Delete { Delete::No, Delete::Yes } |
Whether the SlotClosure shall be deleted. More... | |
Protected Types | |
using | Signature_t = Delete() |
Protected Member Functions | |
virtual | ~ChoiceDeletePolicy () |
Static Protected Member Functions | |
static void | Invoke (const std::function< Signature_t > &f, SlotClosureBase *base) |
static void | Fired (SlotClosureBase *) |
Delegates the SlotClosure deletion decision to the signal handler.
The signal handler's return value (of enum type ChoiceDeletePolicy::Delete) is used to decide whether the SlotClosure should be deleted. This way, the signal handler may be invoked multiple times until the necessary conditions are met.
Definition at line 218 of file slotclosure.h.
|
protected |
Definition at line 236 of file slotclosure.h.
|
strong |
Whether the SlotClosure shall be deleted.
Enumerator | |
---|---|
No | Do not delete SlotClosure after this invocation. |
Yes | Delete SlotClosure after this invocation. |
Definition at line 223 of file slotclosure.h.
|
inlineprotectedvirtual |
Definition at line 234 of file slotclosure.h.
Referenced by LC::Util::NoDeletePolicy::Fired().
|
inlinestaticprotected |
Definition at line 244 of file slotclosure.h.
|
inlinestaticprotected |
Definition at line 238 of file slotclosure.h.