src/core/model/list-scheduler.cc
changeset 9134 7a750f032acd
parent 7383 c5e131450339
child 9138 967a214aeb54
--- a/src/core/model/list-scheduler.cc	Sat Nov 10 18:45:37 2012 +0100
+++ b/src/core/model/list-scheduler.cc	Sat Nov 10 19:16:38 2012 +0100
@@ -20,10 +20,13 @@
 
 #include "list-scheduler.h"
 #include "event-impl.h"
+#include "log.h"
 #include <utility>
 #include <string>
 #include "assert.h"
 
+NS_LOG_COMPONENT_DEFINE ("ListScheduler");
+
 namespace ns3 {
 
 
@@ -32,6 +35,7 @@
 TypeId
 ListScheduler::GetTypeId (void)
 {
+  NS_LOG_FUNCTION_NOARGS ();
   static TypeId tid = TypeId ("ns3::ListScheduler")
     .SetParent<Scheduler> ()
     .AddConstructor<ListScheduler> ()
@@ -41,6 +45,7 @@
 
 ListScheduler::ListScheduler ()
 {
+  NS_LOG_FUNCTION (this);
 }
 ListScheduler::~ListScheduler ()
 {
@@ -49,6 +54,7 @@
 void
 ListScheduler::Insert (const Event &ev)
 {
+  NS_LOG_FUNCTION (this << &ev);
   for (EventsI i = m_events.begin (); i != m_events.end (); i++)
     {
       if (ev.key < i->key)
@@ -62,17 +68,20 @@
 bool
 ListScheduler::IsEmpty (void) const
 {
+  NS_LOG_FUNCTION (this);
   return m_events.empty ();
 }
 Scheduler::Event
 ListScheduler::PeekNext (void) const
 {
+  NS_LOG_FUNCTION (this);
   return m_events.front ();
 }
 
 Scheduler::Event
 ListScheduler::RemoveNext (void)
 {
+  NS_LOG_FUNCTION (this);
   Event next = m_events.front ();
   m_events.pop_front ();
   return next;
@@ -81,6 +90,7 @@
 void
 ListScheduler::Remove (const Event &ev)
 {
+  NS_LOG_FUNCTION (this << &ev);
   for (EventsI i = m_events.begin (); i != m_events.end (); i++)
     {
       if (i->key.m_uid == ev.key.m_uid)