Class timestep

Inheritance Relationships

Base Type

Class Documentation

class timestep : public rcppsw::types::named_type<size_t, struct timestep_tag>

Type to be used for representing timesteps in a simulation environment. Meant to reduce the arbritrary (possibly erroneous) manipulations possible with simulation time via implicit conversion.

Public Functions

timestep(const timestep&) = default
inline timestep operator%(const timestep &other) const
inline timestep operator+(const timestep &other) const
inline timestep operator+(size_t n) const
inline timestep &operator++(void)
inline timestep &operator+=(const timestep &other)
inline timestep &operator+=(size_t n)
inline timestep operator-(const timestep &other) const
inline timestep operator-(size_t n) const
template<class T>
inline bool operator<(const T &other) const
inline bool operator<(const timestep &other) const
template<class T>
inline bool operator<=(const T &other) const
inline bool operator<=(const timestep &other) const
inline timestep &operator=(const timestep &other)
template<class T>
inline bool operator==(const T &other) const
inline bool operator==(const timestep &other) const
template<class T>
inline bool operator>(const T &other) const
inline bool operator>(const timestep &other) const
template<class T>
inline bool operator>=(const T &other) const
inline bool operator>=(const timestep &other) const