LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::ChoiceDeletePolicy Class Reference

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 *)
 

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

Member Typedef Documentation

◆ Signature_t

Definition at line 236 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 223 of file slotclosure.h.

Constructor & Destructor Documentation

◆ ~ChoiceDeletePolicy()

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

Definition at line 234 of file slotclosure.h.

Referenced by LC::Util::NoDeletePolicy::Fired().

+ Here is the caller graph for this function:

Member Function Documentation

◆ Fired()

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

Definition at line 244 of file slotclosure.h.

◆ Invoke()

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

Definition at line 238 of file slotclosure.h.


The documentation for this class was generated from the following file: