Triggers at constant time intervals. More...
#include <trigger.hpp>


Public Member Functions | |
| ConstantTimeInterval (double dt, double t_next=0) | |
| Class constructor. More... | |
| bool | operator() (const hdsim &sim) |
| Returns true if event happened. More... | |
Public Member Functions inherited from Trigger | |
| virtual | ~Trigger (void) |
| Class destructor. | |
Triggers at constant time intervals.
Definition at line 27 of file trigger.hpp.
| ConstantTimeInterval::ConstantTimeInterval | ( | double | dt, |
| double | t_next = 0 |
||
| ) |
Class constructor.
| dt | Time step |
| t_next | First trigger time |
Definition at line 5 of file trigger.cpp.
|
virtual |
Returns true if event happened.
| sim | Reference to the simulation |
Implements Trigger.
Definition at line 8 of file trigger.cpp.

1.8.13