A notifiable class that calls a particular function object once when it is invoked, then deletes itself.
More...
#include <Executable.hxx>
|
| | CallbackExecutable (std::function< void()> &&body) |
| | Constructor.
|
| |
| void | run () override |
| | Calls the notification method.
|
| |
| void | test_deletion () |
| |
| void | notify () override |
| | Crashes the program – everyone who is expecting notify calls must override this function.
|
| |
| virtual void | alloc_result (QMember *item) |
| | Return the result of an alloc_async() from a memory Pool.
|
| |
| void | init () |
| | Initiailize a QMember, in place of a public placement construction.
|
| |
|
| std::function< void()> | body_ |
| | Function object (callback) to call.
|
| |
A notifiable class that calls a particular function object once when it is invoked, then deletes itself.
Definition at line 71 of file Executable.hxx.
◆ CallbackExecutable()
| CallbackExecutable::CallbackExecutable |
( |
std::function< void()> && |
body | ) |
|
|
inline |
Constructor.
- Parameters
-
| body | is the function object that will be called when *this is executed, just before *this is deleted. |
Definition at line 76 of file Executable.hxx.
◆ run()
| void CallbackExecutable::run |
( |
| ) |
|
|
inlineoverridevirtual |
◆ body_
| std::function<void()> CallbackExecutable::body_ |
|
private |
Function object (callback) to call.
Definition at line 90 of file Executable.hxx.
The documentation for this class was generated from the following file: