Class Iterator¶
Defined in File Iterator.hpp
Nested Relationships¶
Nested Types¶
Class Documentation¶
-
class Iterator¶
A class that controls how time steps are performed.
Public Functions
-
Iterator() = delete¶
-
void setStartStopStep(TimePoint startTime, TimePoint stopTime, Duration timestep)¶
Sets the time parameters as a start time, stop time and timestep length.
- Parameters:
startTime – Start time point.
stopTime – Stop time point.
timestep – Timestep length.
-
void run()¶
-
class Iterant¶
A base class for classes that specify what happens during one timestep.
Subclassed by Nextsim::Counterant, Nextsim::IModelStep
Public Functions
-
Iterant() = default¶
-
virtual ~Iterant() = default¶
-
virtual void init() = 0¶
Initializes the model, based on some environment stored in the implementing class.
-
virtual void start(const TimePoint &startTime) = 0¶
Initializes the iterant based on the start time.
- Parameters:
startTime – the time at the initialization of the iterant.
-
virtual void iterate(const TimestepTime &dt) = 0¶
Performs one iteration a specified length
- Parameters:
dt – The length of the timestep.
-
Iterant() = default¶
-
Iterator() = delete¶