2 #ifndef SYDEVS_SYSTEMS_DISCRETE_EVENT_TIME_H_
3 #define SYDEVS_SYSTEMS_DISCRETE_EVENT_TIME_H_
constexpr bool finite() const
Returns true if the quantity value is finite.
Definition: quantity.h:395
A data structure which represents progress through a simulation, encapsulating both simulated time an...
Definition: discrete_event_time.h:37
int64 c() const
Return the counter value of associated with the current point in simulated time.
Definition: discrete_event_time.h:113
const time_point & t() const
Return the current point in simulated time.
Definition: discrete_event_time.h:101
discrete_event_time()
Constructs a discrete_event_time object starting at time zero and a counter value of zero.
Definition: discrete_event_time.h:77
discrete_event_time(discrete_event_time &&)=default
Move constructor.
virtual ~discrete_event_time()=default
Destructor.
discrete_event_time & operator=(discrete_event_time &&)=default
Move assignment.
int64 t_index() const
Return the index associated with the current point in simulated time.
Definition: discrete_event_time.h:107
discrete_event_time(const discrete_event_time &)=default
Copy constructor.
void advance()
Advance the counter without changing simulated time point.
Definition: discrete_event_time.h:140
discrete_event_time & operator=(const discrete_event_time &)=default
Copy assignment.
A data structure which represents a point in time as an arbitrary-precision multiple of its shortest ...
Definition: time_point.h:85
time_point & advance(duration rhs)
Advances the time_point object by the specified duration.
Definition: time_point.cpp:75
constexpr auto _s
Definition: units.h:128
int64_t int64
Definition: number_types.h:15