A Discrete-Event Network Simulator
API
ns3::SequenceNumber10 Class Reference

SequenceNumber10 class. More...

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

+ Collaboration diagram for ns3::SequenceNumber10:

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

Detailed Description

SequenceNumber10 class.

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

Constructor & Destructor Documentation

◆ SequenceNumber10() [1/3]

ns3::SequenceNumber10::SequenceNumber10 ( )
inline

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

◆ SequenceNumber10() [2/3]

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

Constructor.

Parameters
valuethe value

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

◆ SequenceNumber10() [3/3]

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

Constructor.

Parameters
valuethe value

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

Member Function Documentation

◆ GetValue()

◆ 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 179 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 121 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 108 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 145 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 133 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 209 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 189 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 70 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 169 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 156 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 199 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 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-().

+ 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 99 of file lte-rlc-sequence-number.h.

References m_modulusBase.

Friends And Related Function 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 31 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 219 of file lte-rlc-sequence-number.h.

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

◆ m_value

uint16_t ns3::SequenceNumber10::m_value
private

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