a std::list event scheduler More...
#include <list-scheduler.h>
Public Member Functions | |
ListScheduler () | |
virtual | ~ListScheduler () |
virtual void | Insert (const Event &ev) |
virtual bool | IsEmpty (void) const |
virtual Event | PeekNext (void) const |
virtual Event | RemoveNext (void) |
virtual void | Remove (const Event &ev) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::ListScheduler. | |
Private Types | |
typedef std::list< Event > | Events |
typedef std::list< Event > ::iterator | EventsI |
Private Attributes | |
Events | m_events |
a std::list event scheduler
This class implements an event scheduler using an std::list data structure, that is, a double linked-list.
Definition at line 40 of file list-scheduler.h.
typedef std::list<Event> ns3::ListScheduler::Events [private] |
Definition at line 56 of file list-scheduler.h.
typedef std::list<Event>::iterator ns3::ListScheduler::EventsI [private] |
Definition at line 57 of file list-scheduler.h.
ns3::ListScheduler::ListScheduler | ( | ) |
Definition at line 37 of file list-scheduler.cc.
ns3::ListScheduler::~ListScheduler | ( | ) | [virtual] |
Definition at line 39 of file list-scheduler.cc.
TypeId ns3::ListScheduler::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::ListScheduler.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::Scheduler.
Definition at line 28 of file list-scheduler.cc.
void ns3::ListScheduler::Insert | ( | const Event & | ev | ) | [virtual] |
Definition at line 43 of file list-scheduler.cc.
bool ns3::ListScheduler::IsEmpty | ( | void | ) | const [virtual] |
Implements ns3::Scheduler.
Definition at line 56 of file list-scheduler.cc.
Scheduler::Event ns3::ListScheduler::PeekNext | ( | void | ) | const [virtual] |
This method cannot be invoked if the list is empty.
Implements ns3::Scheduler.
Definition at line 61 of file list-scheduler.cc.
References m_events.
void ns3::ListScheduler::Remove | ( | const Event & | ev | ) | [virtual] |
Definition at line 75 of file list-scheduler.cc.
Scheduler::Event 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.
Definition at line 67 of file list-scheduler.cc.
References m_events.
Events ns3::ListScheduler::m_events [private] |
Definition at line 58 of file list-scheduler.h.
Referenced by PeekNext(), and RemoveNext().