SequenceNumber10 class. More...
#include "lte-rlc-sequence-number.h"
Public Member Functions | |
SequenceNumber10 () | |
SequenceNumber10 (SequenceNumber10 const &value) | |
Constructor. More... | |
SequenceNumber10 (uint16_t value) | |
Constructor. More... | |
uint16_t | GetValue () const |
Extracts the numeric value of the sequence number. More... | |
bool | operator!= (const SequenceNumber10 &other) const |
inequality operator More... | |
SequenceNumber10 | operator+ (uint16_t delta) const |
addition operator More... | |
SequenceNumber10 | operator++ (int) |
postfix ++ operator More... | |
uint16_t | operator- (const SequenceNumber10 &other) const |
subtraction operator More... | |
SequenceNumber10 | operator- (uint16_t delta) const |
subtraction operator More... | |
bool | operator< (const SequenceNumber10 &other) const |
less than operator More... | |
bool | operator<= (const SequenceNumber10 &other) const |
less than or equal operator More... | |
SequenceNumber10 & | operator= (uint16_t value) |
Assignment operator. More... | |
bool | operator== (const SequenceNumber10 &other) const |
equality operator More... | |
bool | operator> (const SequenceNumber10 &other) const |
greater than operator More... | |
bool | operator>= (const SequenceNumber10 &other) const |
greater than or equal operator More... | |
void | SetModulusBase (SequenceNumber10 modulusBase) |
Set modulus base. More... | |
void | SetModulusBase (uint16_t modulusBase) |
Set modulus base. More... | |
Private Attributes | |
uint16_t | m_modulusBase |
the modulus base More... | |
uint16_t | m_value |
the value More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SequenceNumber10 &val) |
Ostream output function. More... | |
SequenceNumber10 class.
Definition at line 36 of file lte-rlc-sequence-number.h.
|
inline |
Definition at line 39 of file lte-rlc-sequence-number.h.
|
inlineexplicit |
|
inline |
|
inline |
Extracts the numeric value of the sequence number.
Definition at line 81 of file lte-rlc-sequence-number.h.
References m_value.
Referenced by ns3::LteRlcAm::DoNotifyTxOpportunity(), ns3::LteRlcAm::DoReceivePdu(), ns3::LteRlcUm::DoReceivePdu(), ns3::LteRlcAm::DoReportBufferStatus(), ns3::LteRlcAm::ExpirePollRetransmitTimer(), ns3::LteRlcAm::ExpireReorderingTimer(), ns3::LteRlcUm::ExpireReorderingTimer(), ns3::LteRlcAmHeader::IsNackPresent(), ns3::LteRlcUm::ReassembleSnInterval(), ns3::LteRlcAmHeader::Serialize(), and ns3::LteRlcHeader::Serialize().
|
inline |
inequality operator
other | the object to compare |
Definition at line 179 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
addition operator
delta | the amount to add |
Definition at line 121 of file lte-rlc-sequence-number.h.
References m_modulusBase, m_value, and SetModulusBase().
|
inline |
postfix ++ operator
Definition at line 108 of file lte-rlc-sequence-number.h.
References m_modulusBase, m_value, and SetModulusBase().
|
inline |
subtraction operator
other | the amount to subtract |
Definition at line 145 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
subtraction operator
delta | the amount to subtract |
Definition at line 133 of file lte-rlc-sequence-number.h.
References m_modulusBase, m_value, and SetModulusBase().
|
inline |
less than operator
other | the object to compare |
Definition at line 209 of file lte-rlc-sequence-number.h.
References m_value, and operator>().
|
inline |
less than or equal operator
other | the object to compare |
Definition at line 189 of file lte-rlc-sequence-number.h.
|
inline |
Assignment operator.
value | the value |
Definition at line 70 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
equality operator
other | the object to compare |
Definition at line 169 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
greater than operator
other | the object to compare |
Definition at line 156 of file lte-rlc-sequence-number.h.
References m_modulusBase, m_value, and NS_ASSERT.
Referenced by operator<().
|
inline |
greater than or equal operator
other | the object to compare |
Definition at line 199 of file lte-rlc-sequence-number.h.
|
inline |
Set modulus base.
modulusBase | the modulus |
Definition at line 90 of file lte-rlc-sequence-number.h.
References m_modulusBase, and m_value.
Referenced by ns3::LteRlcAm::DoNotifyTxOpportunity(), ns3::LteRlcAm::DoReceivePdu(), ns3::LteRlcUm::DoReceivePdu(), ns3::LteRlcAm::IsInsideReceivingWindow(), ns3::LteRlcUm::IsInsideReorderingWindow(), operator+(), operator++(), and operator-().
|
inline |
Set modulus base.
modulusBase | the modulus |
Definition at line 99 of file lte-rlc-sequence-number.h.
References m_modulusBase.
|
friend |
Ostream output function.
os | the output stream |
val | the sequence number |
Definition at line 31 of file lte-rlc-sequence-number.cc.
|
private |
the modulus base
Definition at line 219 of file lte-rlc-sequence-number.h.
Referenced by operator+(), operator++(), operator-(), operator>(), and SetModulusBase().
|
private |
the value
Definition at line 218 of file lte-rlc-sequence-number.h.
Referenced by GetValue(), operator!=(), operator+(), operator++(), operator-(), operator<(), operator=(), operator==(), operator>(), and SetModulusBase().