a simulation event More...
#include <event-impl.h>
Public Member Functions | |
EventImpl () | |
virtual | ~EventImpl ()=0 |
void | Cancel (void) |
void | Invoke (void) |
bool | IsCancelled (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
Protected Member Functions | |
virtual void | Notify (void)=0 |
Private Attributes | |
bool | m_cancel |
Additional Inherited Members | |
![]() | |
static void | Cleanup (void) |
a simulation event
Each subclass of this base class represents a simulation event. The EventImpl::Invoke method will be invoked by the simulation engine when the time associated to this event expires. This class is obviously (there are Ref and Unref methods) reference-counted and most subclasses are usually created by one of the many Simulator::Schedule methods.
Definition at line 39 of file event-impl.h.
ns3::EventImpl::EventImpl | ( | ) |
Definition at line 29 of file event-impl.cc.
|
pure virtual |
Definition at line 25 of file event-impl.cc.
void ns3::EventImpl::Cancel | ( | void | ) |
Marks the event as 'canceled'. The event will not be removed from the event list but the simulation engine will check its canceled status before calling Invoke.
Definition at line 44 of file event-impl.cc.
References m_cancel.
void ns3::EventImpl::Invoke | ( | void | ) |
Called by the simulation engine to notify the event that it has expired.
Definition at line 35 of file event-impl.cc.
References m_cancel, and Notify().
Referenced by ns3::DefaultSimulatorImpl::Destroy(), ns3::RealtimeSimulatorImpl::Destroy(), ns3::DistributedSimulatorImpl::Destroy(), ns3::DefaultSimulatorImpl::ProcessOneEvent(), and ns3::DistributedSimulatorImpl::ProcessOneEvent().
bool ns3::EventImpl::IsCancelled | ( | void | ) |
Invoked by the simulation engine before calling Invoke.
Definition at line 50 of file event-impl.cc.
References m_cancel.
Referenced by ns3::DefaultSimulatorImpl::Destroy(), ns3::RealtimeSimulatorImpl::Destroy(), ns3::DistributedSimulatorImpl::Destroy(), ns3::DefaultSimulatorImpl::IsExpired(), ns3::RealtimeSimulatorImpl::IsExpired(), and ns3::DistributedSimulatorImpl::IsExpired().
|
protectedpure virtual |
|
private |
Definition at line 65 of file event-impl.h.
Referenced by Cancel(), Invoke(), and IsCancelled().