Class Step¶
- Defined in File Step.h
Inheritance Relationships¶
Base Type¶
public necsim::MapLocation
(Struct MapLocation)
Class Documentation¶
-
class
Step
: public virtual necsim::MapLocation¶ Stores the elements associated with a single step in a coalescence simulation.
This object should only contain transient variables that are used within a single simulation step and therefore should not be important for pausing/resuming simulations.
Public Functions
-
void
wipeData
()¶ Removes all stored data from the step. This should be run at the start of a single coalescence step.
-
bool
isOnGrid
() const¶ Checks if the location is directly on the grid without wrapping (i.e. xwrap and ywrap are 0).
- Return
- true if on the grid
-
bool
operator==
(MapLocation const &m) const¶ Equality operator for MapLocation.
- Return
- true if the x, y, xwrap and ywrap are identical
- Parameters
m
: the MapLocation object to compare against
-
bool
operator!=
(MapLocation const &m) const¶ Inequality operator for MapLocation.
- Return
- true if locations are not identical
- Parameters
m
: the MapLocation object to compare against
-
void