a std::list event scheduler More...
#include <list-scheduler.h>
Public Member Functions | |
virtual void | Insert (const EventId &id) |
virtual bool | IsEmpty (void) const |
virtual EventId | PeekNext (void) const |
virtual EventId | RemoveNext (void) |
virtual bool | Remove (const EventId &ev) |
a std::list event scheduler
This class implements the an event scheduler using an std::list data structure, that is, a double linked-list.
virtual void ns3::ListScheduler::Insert | ( | const EventId & | id | ) | [virtual] |
id | event to store in the event list |
This method takes ownership of the event pointer.
Implements ns3::Scheduler.
virtual bool ns3::ListScheduler::IsEmpty | ( | void | ) | const [virtual] |
Implements ns3::Scheduler.
virtual EventId ns3::ListScheduler::PeekNext | ( | void | ) | const [virtual] |
This method cannot be invoked if the list is empty.
Implements ns3::Scheduler.
virtual bool ns3::ListScheduler::Remove | ( | const EventId & | id | ) | [virtual] |
id | the id of the event to remove |
This methods cannot be invoked if the list is empty.
Implements ns3::Scheduler.
virtual EventId ns3::ListScheduler::RemoveNext | ( | void | ) | [virtual] |
This method cannot be invoked if the list is empty. Remove the next earliest event from the event list.
Implements ns3::Scheduler.