add missing implementations
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 02 Oct 2007 11:36:12 +0200
changeset 1887 14b4e0b7870a
parent 1886 704c1ccd835e
child 1888 dbeef4fcff5a
add missing implementations
src/devices/wifi/wifi-mode.cc
--- a/src/devices/wifi/wifi-mode.cc	Mon Oct 01 15:41:19 2007 +0200
+++ b/src/devices/wifi/wifi-mode.cc	Tue Oct 02 11:36:12 2007 +0200
@@ -1,4 +1,5 @@
 #include "wifi-mode.h"
+#include "ns3/assert.h"
 
 namespace ns3 {
 
@@ -49,6 +50,8 @@
   : m_uid (uid)
 {}
 
+WifiModeFactory::WifiModeFactory ()
+{}
 
 WifiMode 
 WifiModeFactory::CreateBpsk (std::string uniqueName,
@@ -102,6 +105,13 @@
   return uid;
 }
 
+struct WifiModeFactory::WifiModeItem *
+WifiModeFactory::Get (uint32_t uid)
+{
+  NS_ASSERT (uid > 1);
+  return &m_itemList[uid - 1];
+}
+
 WifiModeFactory *
 WifiModeFactory::GetFactory (void)
 {