SequenceNumber10 class. More...
#include "lte-rlc-sequence-number.h"
Public Member Functions | |
SequenceNumber10 () | |
SequenceNumber10 (const SequenceNumber10 &value) | |
Constructor. | |
SequenceNumber10 (uint16_t value) | |
Constructor. | |
uint16_t | GetValue () const |
Extracts the numeric value of the sequence number. | |
bool | operator!= (const SequenceNumber10 &other) const |
inequality operator | |
SequenceNumber10 | operator+ (uint16_t delta) const |
addition operator | |
SequenceNumber10 | operator++ (int) |
postfix ++ operator | |
uint16_t | operator- (const SequenceNumber10 &other) const |
subtraction operator | |
SequenceNumber10 | operator- (uint16_t delta) const |
subtraction operator | |
bool | operator< (const SequenceNumber10 &other) const |
less than operator | |
bool | operator<= (const SequenceNumber10 &other) const |
less than or equal operator | |
SequenceNumber10 & | operator= (uint16_t value) |
Assignment operator. | |
bool | operator== (const SequenceNumber10 &other) const |
equality operator | |
bool | operator> (const SequenceNumber10 &other) const |
greater than operator | |
bool | operator>= (const SequenceNumber10 &other) const |
greater than or equal operator | |
void | SetModulusBase (SequenceNumber10 modulusBase) |
Set modulus base. | |
void | SetModulusBase (uint16_t modulusBase) |
Set modulus base. | |
Private Attributes | |
uint16_t | m_modulusBase |
the modulus base | |
uint16_t | m_value |
the value | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SequenceNumber10 &val) |
Ostream output function. | |
SequenceNumber10 class.
Definition at line 22 of file lte-rlc-sequence-number.h.
|
inline |
Definition at line 25 of file lte-rlc-sequence-number.h.
|
inlineexplicit |
|
inline |
|
inline |
Extracts the numeric value of the sequence number.
Definition at line 69 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 167 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
addition operator
delta | the amount to add |
Definition at line 109 of file lte-rlc-sequence-number.h.
References m_modulusBase, m_value, and SetModulusBase().
|
inline |
postfix ++ operator
Definition at line 96 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 133 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
subtraction operator
delta | the amount to subtract |
Definition at line 121 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 197 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 177 of file lte-rlc-sequence-number.h.
|
inline |
Assignment operator.
value | the value |
Definition at line 59 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
equality operator
other | the object to compare |
Definition at line 157 of file lte-rlc-sequence-number.h.
References m_value.
|
inline |
greater than operator
other | the object to compare |
Definition at line 144 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 187 of file lte-rlc-sequence-number.h.
|
inline |
Set modulus base.
modulusBase | the modulus |
Definition at line 78 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 87 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 20 of file lte-rlc-sequence-number.cc.
|
private |
the modulus base
Definition at line 206 of file lte-rlc-sequence-number.h.
Referenced by operator+(), operator++(), operator-(), operator>(), SetModulusBase(), and SetModulusBase().
|
private |
the value
Definition at line 205 of file lte-rlc-sequence-number.h.
Referenced by GetValue(), operator!=(), operator+(), operator++(), operator-(), operator-(), operator<(), operator=(), operator==(), operator>(), and SetModulusBase().