--- a/src/node/node-list.cc Wed Jun 18 11:57:43 2008 -0700
+++ b/src/node/node-list.cc Wed Jun 18 21:17:56 2008 -0700
@@ -172,5 +172,10 @@
{
return NodeListPriv::Get ()->GetNode (n);
}
+uint32_t
+NodeList::GetNNodes (void)
+{
+ return NodeListPriv::Get ()->GetNNodes ();
+}
}//namespace ns3
--- a/src/node/node-list.h Wed Jun 18 11:57:43 2008 -0700
+++ b/src/node/node-list.h Wed Jun 18 21:17:56 2008 -0700
@@ -65,6 +65,10 @@
* \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