Public Member Functions

ns3::MapScheduler Class Reference
[Scheduler]

a std::map event scheduler More...

#include <map-scheduler.h>

Inheritance diagram for ns3::MapScheduler:
Inheritance graph
[legend]
Collaboration diagram for ns3::MapScheduler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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)

Detailed Description

a std::map event scheduler

This class implements the an event scheduler using an std::map data structure.


Member Function Documentation

virtual void ns3::MapScheduler::Insert ( const Event &  ev  )  [virtual]
Parameters:
ev event to store in the event list

Implements ns3::Scheduler.

virtual bool ns3::MapScheduler::IsEmpty ( void   )  const [virtual]
Returns:
true if the event list is empty and false otherwise.

Implements ns3::Scheduler.

virtual Event ns3::MapScheduler::PeekNext ( void   )  const [virtual]
Returns:
a pointer to the next earliest event. The caller takes ownership of the returned pointer.

This method cannot be invoked if the list is empty.

Implements ns3::Scheduler.

virtual void ns3::MapScheduler::Remove ( const Event &  ev  )  [virtual]
Parameters:
ev the event to remove

This methods cannot be invoked if the list is empty.

Implements ns3::Scheduler.

virtual Event ns3::MapScheduler::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.


The documentation for this class was generated from the following file: