From 478e810ad5c43edfc0c7f7059834ae9062b0f51e Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 9 Apr 2008 10:01:16 -0700 Subject: [PATCH] add some debugging --- src/node/node-list.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/node/node-list.cc b/src/node/node-list.cc index 0c76d3799..e687fe5fc 100644 --- a/src/node/node-list.cc +++ b/src/node/node-list.cc @@ -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 @@ NodeListPriv::DoGet (void) 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 >::iterator i = m_nodes.begin (); i != m_nodes.end (); i++) {