Helios++
Helios software for LiDAR simulations
|
Class extending StepLoop to support functions with no return. More...
#include <VoidStepLoop.h>
Public Member Functions | |
VoidStepLoop (int const stepInterval, std::function< void(StepInput ...)> f) | |
Void step loop constructor receiving interval and computation region function. | |
void | handleStep (StepInput ... input) override |
Implementation of StepLoop::handleStep for computation regions with void return. 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< void(StepInput ...)> | f |
The function to be invoked when computation region function has been reached. | |
![]() | |
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 no return.
|
inlineoverridevirtual |
Implementation of StepLoop::handleStep for computation regions with void return.
Implements StepLoop< StepInput ... >.