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

TosTlvValue class. More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::TosTlvValue:
+ Collaboration diagram for ns3::TosTlvValue:

Public Member Functions

 TosTlvValue ()
 
 TosTlvValue (uint8_t low, uint8_t high, uint8_t mask)
 Constructor.
 
 ~TosTlvValue () override
 
TosTlvValueCopy () const override
 Copy.
 
uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLength) override
 Deserialize from a buffer.
 
uint8_t GetHigh () const
 Get high part.
 
uint8_t GetLow () const
 Get low part.
 
uint8_t GetMask () const
 Get the mask.
 
uint32_t GetSerializedSize () const override
 Get serialized size in bytes.
 
void Serialize (Buffer::Iterator start) const override
 Serialize to a buffer.
 
- Public Member Functions inherited from ns3::TlvValue
virtual ~TlvValue ()
 

Private Attributes

uint8_t m_high
 high
 
uint8_t m_low
 low
 
uint8_t m_mask
 mask
 

Detailed Description

TosTlvValue class.

Definition at line 424 of file wimax-tlv.h.

Constructor & Destructor Documentation

◆ TosTlvValue() [1/2]

ns3::TosTlvValue::TosTlvValue ( )

Definition at line 784 of file wimax-tlv.cc.

References m_high, m_low, and m_mask.

Referenced by Copy().

+ Here is the caller graph for this function:

◆ TosTlvValue() [2/2]

ns3::TosTlvValue::TosTlvValue ( uint8_t low,
uint8_t high,
uint8_t mask )

Constructor.

Parameters
lowlow value
highhigh value
maskthe mask

Definition at line 791 of file wimax-tlv.cc.

References m_high, m_low, and m_mask.

◆ ~TosTlvValue()

ns3::TosTlvValue::~TosTlvValue ( )
override

Definition at line 798 of file wimax-tlv.cc.

Member Function Documentation

◆ Copy()

TosTlvValue * ns3::TosTlvValue::Copy ( ) const
overridevirtual

Copy.

Returns
the TOS TLV value

Implements ns3::TlvValue.

Definition at line 844 of file wimax-tlv.cc.

References TosTlvValue(), m_high, m_low, and m_mask.

+ Here is the call graph for this function:

◆ Deserialize()

uint32_t ns3::TosTlvValue::Deserialize ( Buffer::Iterator start,
uint64_t valueLen )
overridevirtual

Deserialize from a buffer.

Parameters
startthe iterator
valueLenthe maximum length of the value
Returns
the

Implements ns3::TlvValue.

Definition at line 817 of file wimax-tlv.cc.

References m_high, m_low, m_mask, and ns3::Buffer::Iterator::ReadU8().

Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHigh()

uint8_t ns3::TosTlvValue::GetHigh ( ) const

Get high part.

Returns
the high part

Definition at line 832 of file wimax-tlv.cc.

References m_high.

◆ GetLow()

uint8_t ns3::TosTlvValue::GetLow ( ) const

Get low part.

Returns
the low part

Definition at line 826 of file wimax-tlv.cc.

References m_low.

◆ GetMask()

uint8_t ns3::TosTlvValue::GetMask ( ) const

Get the mask.

Returns
the mask

Definition at line 838 of file wimax-tlv.cc.

References m_mask.

◆ GetSerializedSize()

uint32_t ns3::TosTlvValue::GetSerializedSize ( ) const
overridevirtual

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

Definition at line 803 of file wimax-tlv.cc.

Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().

+ Here is the caller graph for this function:

◆ Serialize()

void ns3::TosTlvValue::Serialize ( Buffer::Iterator start) const
overridevirtual

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

Definition at line 809 of file wimax-tlv.cc.

References m_high, m_low, m_mask, and ns3::Buffer::Iterator::WriteU8().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_high

uint8_t ns3::TosTlvValue::m_high
private

high

Definition at line 463 of file wimax-tlv.h.

Referenced by TosTlvValue(), TosTlvValue(), Copy(), Deserialize(), GetHigh(), and Serialize().

◆ m_low

uint8_t ns3::TosTlvValue::m_low
private

low

Definition at line 462 of file wimax-tlv.h.

Referenced by TosTlvValue(), TosTlvValue(), Copy(), Deserialize(), GetLow(), and Serialize().

◆ m_mask

uint8_t ns3::TosTlvValue::m_mask
private

mask

Definition at line 464 of file wimax-tlv.h.

Referenced by TosTlvValue(), TosTlvValue(), Copy(), Deserialize(), GetMask(), and Serialize().


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