add some debugging
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 09 Apr 2008 10:01:16 -0700
changeset 2898 6993ee3fa5a3
parent 2897 cb427d45a011
child 2899 e5070e510fa8
add some debugging
src/node/node-list.cc
--- a/src/node/node-list.cc	Wed Apr 09 09:08:54 2008 -0700
+++ b/src/node/node-list.cc	Wed Apr 09 10:01:16 2008 -0700
@@ -22,11 +22,14 @@
 #include "ns3/simulator.h"
 #include "ns3/object-vector.h"
 #include "ns3/config.h"
+#include "ns3/log.h"
 #include "node-list.h"
 #include "node.h"
 
 namespace ns3 {
 
+NS_LOG_COMPONENT_DEFINE ("NodeList");
+
 
 /**
  * The private node list used by the static-based API
@@ -85,15 +88,19 @@
 void 
 NodeListPriv::Delete (void)
 {
+  NS_LOG_FUNCTION;
   Config::UnregisterRootNamespaceObject (Get ());
   (*DoGet ()) = 0;
 }
 
 
 NodeListPriv::NodeListPriv ()
-{}
+{
+  NS_LOG_FUNCTION;
+}
 NodeListPriv::~NodeListPriv ()
 {
+  NS_LOG_FUNCTION;
   for (std::vector<Ptr<Node> >::iterator i = m_nodes.begin ();
        i != m_nodes.end (); i++)
     {