GetNNodes() in NodeList fixes bug 225

This commit is contained in:
Unknown
2008-06-18 21:17:56 -07:00
parent aefd3e3371
commit b357866655
2 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -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