Struct caminos_lib::event::EventQueue [−][src]
pub struct EventQueue { /* fields omitted */ }
Expand description
The event queue structure managing the insertion and extraction of events.
Implementations
Creates a new EventQueue. size
should be greater than any possible delay.
Advances the queue by a cycle. This drops the events in the finished cycle.
Access to the event in the ievent
index of the events to be executed at the begin of the cycle.
Access to the event in the ievent
index of the events to be executed at the end of the cycle.
Adds an event to the list of events to be executed at the begin of the cycle current_cycle + delay
.
Adds an event to the list of events to be executed at the end of the cycle current_cycle + delay
.
Adds an event as it requests.
Trait Implementations
Get the total memory currently being employed by the implementing type. Both stack and heap.
Prints by stdout how much memory is used per component.
Get an estimation on how much memory the type could reach during the simulation.