implement missing operators
authorTom Henderson <tomh@tomh.org>
Sat, 05 Mar 2011 13:31:17 -0800
changeset 6866 4d89be5b1ae9
parent 6865 220373544a6c
child 6867 020d52c50a45
implement missing operators
src/dot11s/model/ie-dot11s-metric-report.cc
src/dot11s/model/ie-dot11s-metric-report.h
--- a/src/dot11s/model/ie-dot11s-metric-report.cc	Sat Mar 05 11:47:37 2011 -0800
+++ b/src/dot11s/model/ie-dot11s-metric-report.cc	Sat Mar 05 13:31:17 2011 -0800
@@ -75,6 +75,16 @@
 {
   return (a.m_metric == b.m_metric);
 }
+bool
+operator< (const IeLinkMetricReport & a, const IeLinkMetricReport & b)
+{
+  return (a.m_metric < b.m_metric);
+}
+bool
+operator> (const IeLinkMetricReport & a, const IeLinkMetricReport & b)
+{
+  return (a.m_metric > b.m_metric);
+}
 std::ostream &
 operator << (std::ostream &os, const IeLinkMetricReport &a)
 {
--- a/src/dot11s/model/ie-dot11s-metric-report.h	Sat Mar 05 11:47:37 2011 -0800
+++ b/src/dot11s/model/ie-dot11s-metric-report.h	Sat Mar 05 13:31:17 2011 -0800
@@ -54,6 +54,10 @@
   friend bool operator>  (const IeLinkMetricReport & a, const IeLinkMetricReport & b);
   friend bool operator<  (const IeLinkMetricReport & a, const IeLinkMetricReport & b);
 };
+
+bool operator== (const IeLinkMetricReport & a, const IeLinkMetricReport & b);
+bool operator>  (const IeLinkMetricReport & a, const IeLinkMetricReport & b);
+bool operator<  (const IeLinkMetricReport & a, const IeLinkMetricReport & b);
 std::ostream &operator << (std::ostream &os, const IeLinkMetricReport &linkMetricReport);
 } //namespace dot11s
 } // namespace ns3