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

U16TlvValue class. More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::U16TlvValue:
+ Collaboration diagram for ns3::U16TlvValue:

Public Member Functions

 U16TlvValue ()
 
 U16TlvValue (uint16_t value)
 Constructor.
 
 ~U16TlvValue () override
 
U16TlvValueCopy () const override
 Copy.
 
uint32_t Deserialize (Buffer::Iterator start)
 Deserialize from a buffer.
 
uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLen) override
 Deserialize from a buffer.
 
uint32_t GetSerializedSize () const override
 Get serialized size in bytes.
 
uint16_t GetValue () const
 Get value.
 
void Serialize (Buffer::Iterator start) const override
 Serialize to a buffer.
 
- Public Member Functions inherited from ns3::TlvValue
virtual ~TlvValue ()
 
virtual TlvValueCopy () const =0
 Copy function.
 
virtual uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLen)=0
 Deserialize from a buffer.
 
virtual uint32_t GetSerializedSize () const =0
 Get serialized size in bytes.
 
virtual void Serialize (Buffer::Iterator start) const =0
 Serialize to a buffer.
 

Private Attributes

uint16_t m_value
 value
 

Detailed Description

U16TlvValue class.

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

Constructor & Destructor Documentation

◆ U16TlvValue() [1/2]

ns3::U16TlvValue::U16TlvValue ( uint16_t  value)

Constructor.

Parameters
valuevalue to encode

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

References m_value.

◆ U16TlvValue() [2/2]

ns3::U16TlvValue::U16TlvValue ( )

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

References m_value.

Referenced by Copy().

+ Here is the caller graph for this function:

◆ ~U16TlvValue()

ns3::U16TlvValue::~U16TlvValue ( )
override

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

Member Function Documentation

◆ Copy()

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

Copy.

Returns
the U16 TLV value

Implements ns3::TlvValue.

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

References U16TlvValue(), and m_value.

+ Here is the call graph for this function:

◆ Deserialize() [1/2]

uint32_t ns3::U16TlvValue::Deserialize ( Buffer::Iterator  start)

Deserialize from a buffer.

Parameters
startthe iterator
Returns
the size

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

References m_value, and ns3::Buffer::Iterator::ReadNtohU16().

+ Here is the call graph for this function:

◆ Deserialize() [2/2]

uint32_t ns3::U16TlvValue::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 560 of file wimax-tlv.cc.

References Deserialize().

Referenced by Deserialize(), ns3::SfVectorTlvValue::Deserialize(), and ns3::ClassificationRuleVectorTlvValue::Deserialize().

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

◆ GetSerializedSize()

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

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

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

◆ GetValue()

uint16_t ns3::U16TlvValue::GetValue ( ) const

Get value.

Returns
the value

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

References m_value.

◆ Serialize()

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

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

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

References m_value, and ns3::Buffer::Iterator::WriteHtonU16().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_value

uint16_t ns3::U16TlvValue::m_value
private

value

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

Referenced by U16TlvValue(), Copy(), Deserialize(), GetValue(), and Serialize().


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