|
Open Model Railroad Network (OpenMRN)
|
A notifiable class that calls a particular function object once when it is invoked, then deletes itself. More...
#include <Notifiable.hxx>
Public Member Functions | |
| TempNotifiable (std::function< void()> body) | |
| Constructor. | |
| void | notify () OVERRIDE |
| Calls the notification method. | |
Private Attributes | |
| 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 323 of file Notifiable.hxx.
|
inline |
Constructor.
| body | is the function object that will be called when *this is notified, just before *this is deleted. |
Definition at line 328 of file Notifiable.hxx.
|
inlinevirtual |
Calls the notification method.
Implements Notifiable.
Definition at line 334 of file Notifiable.hxx.
|
private |
Function object (callback) to call.
Definition at line 342 of file Notifiable.hxx.