16 template <
typename StepOutput,
typename ... StepInput>
25 std::function<StepOutput(StepInput ...)>
f;
41 std::function<StepOutput(StepInput ...)>
f
Class extending StepLoop to support functions with non void return.
Definition: NonVoidStepLoop.h:17
void handleStep(StepInput ... input) override
Implementation of StepLoop::handleStep for computation regions which return something.
Definition: NonVoidStepLoop.h:55
std::function< StepOutput(StepInput ...)> f
The function to be invoked when computation region has been reached.
Definition: NonVoidStepLoop.h:25
NonVoidStepLoop(int const stepInterval, std::function< StepOutput(StepInput ...)> f)
Non void step loop constructor receiving interval and computation region function.
Definition: NonVoidStepLoop.h:39
StepOutput retrieveOutput() const
Obtain the output corresponding to the last time computation region was entered.
Definition: NonVoidStepLoop.h:63
StepOutput output
The output obtained the last time that computation region was entered.
Definition: NonVoidStepLoop.h:30
Abstract class providing the basics to handle loops inside simulation time, which is discrete because...
Definition: StepLoop.h:22
int stepInterval
Specify how many simulation steps must elapse so the step loop enters its computation region.
Definition: StepLoop.h:36