add operator == for WifiMode

This commit is contained in:
Mathieu Lacage
2007-10-08 15:42:07 +02:00
parent d643cf8c1d
commit 5e5800363e
2 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,11 @@
namespace ns3 {
bool operator == (const WifiMode &a, const WifiMode &b)
{
return a.GetUid () == b.GetUid ();
}
uint32_t
WifiMode::GetBandwidth (void) const
{

View File

@@ -70,6 +70,8 @@ private:
uint32_t m_uid;
};
bool operator == (const WifiMode &a, const WifiMode &b);
class WifiModeFactory
{
public: