A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::SequenceNumber10 Class Reference

SequenceNumber10 class. More...

#include "lte-rlc-sequence-number.h"

+ Collaboration diagram for ns3::SequenceNumber10:

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
 
SequenceNumber10operator= (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.
 

Detailed Description

SequenceNumber10 class.

Definition at line 22 of file lte-rlc-sequence-number.h.

Constructor & Destructor Documentation

◆ SequenceNumber10() [1/3]

ns3::SequenceNumber10::SequenceNumber10 ( )
inline

Definition at line 25 of file lte-rlc-sequence-number.h.

◆ SequenceNumber10() [2/3]

ns3::SequenceNumber10::SequenceNumber10 ( uint16_t value)
inlineexplicit

Constructor.

Parameters
valuethe value

Definition at line 36 of file lte-rlc-sequence-number.h.

◆ SequenceNumber10() [3/3]

ns3::SequenceNumber10::SequenceNumber10 ( const SequenceNumber10 & value)
inline

Constructor.

Parameters
valuethe value

Definition at line 47 of file lte-rlc-sequence-number.h.

Member Function Documentation

◆ GetValue()

uint16_t ns3::SequenceNumber10::GetValue ( ) const
inline

Extracts the numeric value of the sequence number.

Returns
the sequence number value

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().

+ Here is the caller graph for this function:

◆ operator!=()

bool ns3::SequenceNumber10::operator!= ( const SequenceNumber10 & other) const
inline

inequality operator

Parameters
otherthe object to compare
Returns
true if not equal

Definition at line 167 of file lte-rlc-sequence-number.h.

References m_value.

◆ operator+()

SequenceNumber10 ns3::SequenceNumber10::operator+ ( uint16_t delta) const
inline

addition operator

Parameters
deltathe amount to add
Returns
SequenceNumber10

Definition at line 109 of file lte-rlc-sequence-number.h.

References m_modulusBase, m_value, and SetModulusBase().

+ Here is the call graph for this function:

◆ operator++()

SequenceNumber10 ns3::SequenceNumber10::operator++ ( int )
inline

postfix ++ operator

Returns
SequenceNumber10

Definition at line 96 of file lte-rlc-sequence-number.h.

References m_modulusBase, m_value, and SetModulusBase().

+ Here is the call graph for this function:

◆ operator-() [1/2]

uint16_t ns3::SequenceNumber10::operator- ( const SequenceNumber10 & other) const
inline

subtraction operator

Parameters
otherthe amount to subtract
Returns
SequenceNumber10

Definition at line 133 of file lte-rlc-sequence-number.h.

References m_value.

◆ operator-() [2/2]

SequenceNumber10 ns3::SequenceNumber10::operator- ( uint16_t delta) const
inline

subtraction operator

Parameters
deltathe amount to subtract
Returns
SequenceNumber10

Definition at line 121 of file lte-rlc-sequence-number.h.

References m_modulusBase, m_value, and SetModulusBase().

+ Here is the call graph for this function:

◆ operator<()

bool ns3::SequenceNumber10::operator< ( const SequenceNumber10 & other) const
inline

less than operator

Parameters
otherthe object to compare
Returns
true if less than

Definition at line 197 of file lte-rlc-sequence-number.h.

References m_value, and operator>().

+ Here is the call graph for this function:

◆ operator<=()

bool ns3::SequenceNumber10::operator<= ( const SequenceNumber10 & other) const
inline

less than or equal operator

Parameters
otherthe object to compare
Returns
true if less than or equal

Definition at line 177 of file lte-rlc-sequence-number.h.

◆ operator=()

SequenceNumber10 & ns3::SequenceNumber10::operator= ( uint16_t value)
inline

Assignment operator.

Parameters
valuethe value
Returns
SequenceNumber10

Definition at line 59 of file lte-rlc-sequence-number.h.

References m_value.

◆ operator==()

bool ns3::SequenceNumber10::operator== ( const SequenceNumber10 & other) const
inline

equality operator

Parameters
otherthe object to compare
Returns
true if equal

Definition at line 157 of file lte-rlc-sequence-number.h.

References m_value.

◆ operator>()

bool ns3::SequenceNumber10::operator> ( const SequenceNumber10 & other) const
inline

greater than operator

Parameters
otherthe object to compare
Returns
true if greater than

Definition at line 144 of file lte-rlc-sequence-number.h.

References m_modulusBase, m_value, and NS_ASSERT.

Referenced by operator<().

+ Here is the caller graph for this function:

◆ operator>=()

bool ns3::SequenceNumber10::operator>= ( const SequenceNumber10 & other) const
inline

greater than or equal operator

Parameters
otherthe object to compare
Returns
true if greater than or equal

Definition at line 187 of file lte-rlc-sequence-number.h.

◆ SetModulusBase() [1/2]

void ns3::SequenceNumber10::SetModulusBase ( SequenceNumber10 modulusBase)
inline

Set modulus base.

Parameters
modulusBasethe 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-().

+ Here is the caller graph for this function:

◆ SetModulusBase() [2/2]

void ns3::SequenceNumber10::SetModulusBase ( uint16_t modulusBase)
inline

Set modulus base.

Parameters
modulusBasethe modulus

Definition at line 87 of file lte-rlc-sequence-number.h.

References m_modulusBase.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const SequenceNumber10 & val )
friend

Ostream output function.

Parameters
osthe output stream
valthe sequence number
Returns
the os

Definition at line 20 of file lte-rlc-sequence-number.cc.

Member Data Documentation

◆ m_modulusBase

uint16_t ns3::SequenceNumber10::m_modulusBase
private

the modulus base

Definition at line 206 of file lte-rlc-sequence-number.h.

Referenced by operator+(), operator++(), operator-(), operator>(), SetModulusBase(), and SetModulusBase().

◆ m_value

uint16_t ns3::SequenceNumber10::m_value
private

The documentation for this class was generated from the following file: