add NetDevice list into Node base class

This commit is contained in:
Mathieu Lacage committed 2007-04-30 10:16:04 +02:00
1 parent deb602517b
commit f856c72ac2
4 files changed
+35

No files matched your search

+9
View File
@@ -100,6 +100,7 @@ class Arp;
class TraceContext;
class TraceResolver;
class NetDevice;
class Node {
friend class NodeList;
@@ -119,6 +120,13 @@ public:
uint32_t GetSystemId (void) const;
void SetSystemId(uint32_t s);
uint32_t AddDevice (NetDevice *device);
NetDevice *GetDevice (uint32_t index) const;
uint32_t GetNDevices (void) const;
private:
virtual void DoAddDevice (NetDevice *device) const = 0;
#ifdef REMOVE_FOR_NOW
// Define a protected delete operator. This will prevent users
// from attempting to delete Node objects. The deletion of
@@ -181,6 +189,7 @@ public:
private:
uint32_t m_id; // Node id for this node
uint32_t m_sid; // System id for this node
std::vector<NetDevice *> m_devices;
};
} //namespace ns3