GetNNodes() in NodeList fixes bug 225
This commit is contained in:
@@ -172,5 +172,10 @@ NodeList::GetNode (uint32_t n)
|
||||
{
|
||||
return NodeListPriv::Get ()->GetNode (n);
|
||||
}
|
||||
uint32_t
|
||||
NodeList::GetNNodes (void)
|
||||
{
|
||||
return NodeListPriv::Get ()->GetNNodes ();
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
|
||||
@@ -65,6 +65,10 @@ public:
|
||||
* \returns the Node associated to index n.
|
||||
*/
|
||||
static Ptr<Node> GetNode (uint32_t n);
|
||||
/**
|
||||
* \returns the number of nodes currently in the list.
|
||||
*/
|
||||
static uint32_t GetNNodes (void);
|
||||
};
|
||||
|
||||
}//namespace ns3
|
||||
|
||||
Reference in New Issue
Block a user