Gromacs
2024.4
|
#include <gromacs/modularsimulator/modularsimulatorinterfaces.h>
The general Signaller interface.
Signallers are run at the beginning of Simulator steps, informing their clients about the upcoming step. This allows clients to decide if they need to be activated at this time step, and what functions they will have to run. Examples for signallers include the neighbor-search signaller (informs its clients when a neighbor-searching step is about to happen) or the logging signaller (informs its clients when a logging step is about to happen).
We expect all signallers to accept registration from clients, but different signallers might handle that differently, so we don't include this in the interface.
Public Member Functions | |
virtual void | signal (Step, Time)=0 |
Function run before every step of scheduling. | |
virtual void | setup ()=0 |
Method guaranteed to be called after construction, before simulator run. | |
virtual | ~ISignaller ()=default |
Standard virtual destructor. | |