116 uint64_t
GetTs (
void)
const;
120 uint32_t
GetUid (
void)
const;
An identifier for simulation events.
UID
Special values of the event UID.
@ INVALID
Invalid UID value.
@ DESTROY
ScheduleDestroy() events.
@ NOW
ScheduleNow() events.
friend bool operator!=(const EventId &a, const EventId &b)
Test if two EventId's are not equal.
friend bool operator<(const EventId &a, const EventId &b)
Less than operator for two EventId's, based on time stamps.
uint32_t GetContext(void) const
friend bool operator==(const EventId &a, const EventId &b)
Test if two EventId's are equal.
uint64_t m_ts
The virtual time stamp.
uint32_t m_uid
The unique id.
bool IsRunning(void) const
This method is syntactic sugar for !IsExpired().
EventImpl * PeekEventImpl(void) const
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::Cancel method.
uint32_t GetUid(void) const
void Remove(void)
This method is syntactic sugar for the ns3::Simulator::Remove method.
bool IsExpired(void) const
This method is syntactic sugar for the ns3::Simulator::IsExpired method.
uint64_t GetTs(void) const
EventId()
Default constructor.
uint32_t m_context
The context.
Ptr< EventImpl > m_eventImpl
The underlying event implementation.
Smart pointer class similar to boost::intrusive_ptr.
ns3::EventImpl declarations.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool operator==(const EventId &a, const EventId &b)
bool operator<(const EventId &a, const EventId &b)
bool operator!=(Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > a, Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 > b)
Inequality test.
ns3::Ptr smart pointer declaration and implementation.