Helios++
Helios software for LiDAR simulations
|
Class extending StepLoop to support functions with non void return. More...
#include <NonVoidStepLoop.h>
Public Member Functions | |
NonVoidStepLoop (int const stepInterval, std::function< StepOutput(StepInput ...)> f) | |
Non void step loop constructor receiving interval and computation region function. | |
void | handleStep (StepInput ... input) override |
Implementation of StepLoop::handleStep for computation regions which return something. More... | |
StepOutput | retrieveOutput () const |
Obtain the output corresponding to the last time computation region was entered. More... | |
![]() | |
StepLoop (int const stepInterval) | |
Step loop constructor receiving interval and computation region function. | |
virtual bool | doStep (StepInput ... input) |
Handle current loop iteration and advances to next one by calling StepLoop::nextStep. More... | |
virtual void | nextStep () |
Advances to current loop iteration, restarting the loop when as many steps as step interval have been done. | |
virtual int | getStepInterval () const |
Obtain the step interval. More... | |
virtual void | setStepInterval (int const stepInterval) |
Set the step interval. More... | |
virtual int | getCurrentStep () const |
Obtain the current step of the step loop. More... | |
virtual void | setCurrentStep (int const currentStep) |
Set the current step for the step loop. More... | |
Protected Attributes | |
std::function< StepOutput(StepInput ...)> | f |
The function to be invoked when computation region has been reached. | |
StepOutput | output |
The output obtained the last time that computation region was entered. | |
![]() | |
int | stepInterval |
Specify how many simulation steps must elapse so the step loop enters its computation region. More... | |
int | currentStep |
Stores the current step. More... | |
Class extending StepLoop to support functions with non void return.
StepOutput | The output type of function to be invoked when computation region is reached |
|
inlineoverridevirtual |
Implementation of StepLoop::handleStep for computation regions which return something.
Implements StepLoop< StepInput ... >.
|
inline |
Obtain the output corresponding to the last time computation region was entered.