|
WSF
|
#include <WsfEvent.hpp>


Protected Types | |
| using | ExecuteFn = std::function<RT(Args...)> |
Protected Member Functions | |
| WsfEventAdapterT (double aSimTime, const ExecuteFn &aExecuteFn) | |
| ~WsfEventAdapterT () override=default | |
Protected Attributes | |
| ExecuteFn | mExecuteFn |
Additional Inherited Members | |
| Public Types inherited from WsfEvent | |
| enum | EventDisposition { cDELETE , cRESCHEDULE } |
| Public Member Functions inherited from WsfEvent | |
| WsfEvent ()=default | |
| WsfEvent (double aSimTime, int aPriority=0) | |
| WsfEvent (const WsfEvent &aSrc)=delete | |
| Copy constructor and copy assignment deleted to prevent copying. | |
| WsfEvent & | operator= (const WsfEvent &aRhs)=delete |
| virtual | ~WsfEvent ()=default |
| virtual EventDisposition | Execute ()=0 |
| double | GetTime () const |
| int | GetPriority () const |
| bool | ShouldExecute () const |
| void | SetTime (double aSimTime) |
| void | SetPriority (int aPriority) |
| void | SetShouldExecute (bool aExecute) |
| WsfSimulation * | GetSimulation () const |
| void | AddedToEventQueue (WsfSimulation &aSimulation) |
| Called when the event is added to the event queue of the specified simulation. | |
A class template that adapts the interface for WsfEvent to provide clients with a convenient way to create an event by simply passing a std::function to the constructor. Sub-classed below for "one-shot" and recurring events.
|
protected |
|
inlineprotected |
References mExecuteFn, and WsfEvent::WsfEvent().
|
overrideprotecteddefault |
|
protected |
Referenced by WsfEventAdapterT().