LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::ChoiceDeletePolicy Class Reference

Delegates the SlotClosure deletion decision to the signal handler. More...

#include "slotclosure.h"

Public Types

enum class  Delete {
  No ,
  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 *)

Detailed Description

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 206 of file slotclosure.h.

Member Typedef Documentation

◆ Signature_t

Definition at line 224 of file slotclosure.h.

Member Enumeration Documentation

◆ Delete

Whether the SlotClosure shall be deleted.

Enumerator
No 

Do not delete SlotClosure after this invocation.

Yes 

Delete SlotClosure after this invocation.

Definition at line 211 of file slotclosure.h.

Constructor & Destructor Documentation

◆ ~ChoiceDeletePolicy()

virtual LC::Util::ChoiceDeletePolicy::~ChoiceDeletePolicy ( )
inlineprotectedvirtual

Definition at line 222 of file slotclosure.h.

Member Function Documentation

◆ Fired()

void LC::Util::ChoiceDeletePolicy::Fired ( SlotClosureBase * )
inlinestaticprotected

Definition at line 232 of file slotclosure.h.

◆ Invoke()

void LC::Util::ChoiceDeletePolicy::Invoke ( const std::function< Signature_t > & f,
SlotClosureBase * base )
inlinestaticprotected

Definition at line 226 of file slotclosure.h.

References Yes.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/sll/slotclosure.h