#include <event-id.h>
Public Member Functions | |
void | Cancel (void) |
bool | IsExpired (void) const |
bool | IsRunning (void) const |
Each EventId identifies a unique event scheduled with one of the many Simulator::Schedule methods. This EventId can be used to Cancel or Remove events after they are scheduled with Simulator::Cancel or Simulator::Remove.
The important thing to remember about this class is that every variable of this type is _always_ in a valid state, even when it has not been assigned an EventId coming from a Schedule method: calling Cancel, IsRunning, IsExpired or passing around instances of this object will not result in crashes or memory leaks.
void ns3::EventId::Cancel | ( | void | ) |
This method is syntactic sugar for the ns3::Simulator::cancel method.
bool ns3::EventId::IsExpired | ( | void | ) | const |
This method is syntactic sugar for the ns3::Simulator::isExpired method.
bool ns3::EventId::IsRunning | ( | void | ) | const |
This method is syntactic sugar for the ns3::Simulator::isExpired method.