add some debugging

This commit is contained in:
Mathieu Lacage
2008-04-09 10:01:16 -07:00
parent bf90dded3c
commit 478e810ad5

View File

@@ -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<Ptr<Node> >::iterator i = m_nodes.begin ();
i != m_nodes.end (); i++)
{