make Node derive from NsUnknown rather than Object

This commit is contained in:
Mathieu Lacage committed 2007-05-03 11:08:13 +02:00
1 parent c96563c3e8
commit ce7a8de796
2 files changed
+11 -13

No files matched your search

+7 -2
View File
@@ -26,18 +26,23 @@
#include "node-list.h"
#include "net-device.h"
#include "ns3/simulator.h"
#include "ns3/iid-manager.h"
namespace ns3{
const uint32_t Node::iid = IidManager::Allocate ("Node");
Node::Node()
: m_id(0),
: NsUnknown (Node::iid),
m_id(0),
m_sid(0)
{
m_id = NodeList::Add (this);
}
Node::Node(uint32_t sid)
: m_id(0),
: NsUnknown (Node::iid),
m_id(0),
m_sid(sid)
{
m_id = NodeList::Add (this);