ns-3
ns3::ListScheduler Class Reference

a std::list event scheduler More...

#include <list-scheduler.h>

Inheritance diagram for ns3::ListScheduler:
Collaboration diagram for ns3::ListScheduler:

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)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::ListScheduler.

Detailed Description

a std::list event scheduler

This class implements an event scheduler using an std::list data structure, that is, a double linked-list.


Member Function Documentation

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.

References ns3::TypeId::SetParent().

void ns3::ListScheduler::Insert ( const Event ev)
virtual
Parameters:
evevent to store in the event list

Implements ns3::Scheduler.

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

Implements ns3::Scheduler.

Scheduler::Event ns3::ListScheduler::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.

void ns3::ListScheduler::Remove ( const Event ev)
virtual
Parameters:
evthe event to remove

This methods cannot be invoked if the list is empty.

Implements ns3::Scheduler.

References NS_ASSERT.

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.


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