add NetDevice list into Node base class
This commit is contained in:
1 parent
deb602517b
commit
f856c72ac2
4 files changed
+35
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user