Add new operator >= to SequenceNumber10
authorManuel Requena <manuel.requena@cttc.es>
Tue, 31 Jan 2012 10:29:32 +0100
changeset 8611 e83faf79de19
parent 8595 5d193f3e4195
child 8612 c98ed562f921
Add new operator >= to SequenceNumber10
src/lte/model/lte-rlc-sequence-number.h
--- a/src/lte/model/lte-rlc-sequence-number.h	Fri Jan 27 17:52:58 2012 +0100
+++ b/src/lte/model/lte-rlc-sequence-number.h	Tue Jan 31 10:29:32 2012 +0100
@@ -125,6 +125,11 @@
     return (!this->operator> (other));
   }
 
+  bool operator >= (const SequenceNumber10 &other) const
+  {
+    return (this->operator> (other) || this->operator== (other));
+  }
+
   bool operator < (const SequenceNumber10 &other) const
   {
     return !this->operator> (other) && m_value != other.m_value;