A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
ns3::U8TlvValue Class Reference

U8TlvValue class. More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::U8TlvValue:

Public Member Functions

 U8TlvValue (uint8_t value)
 Constructor. More...
 
 U8TlvValue ()
 
 ~U8TlvValue (void)
 
U8TlvValueCopy (void) const
 Copy. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLen)
 Deserialize from a buffer. More...
 
uint32_t Deserialize (Buffer::Iterator start)
 Deserialize from a buffer. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get serialized size in bytes. More...
 
uint8_t GetValue (void) const
 Get value. More...
 
virtual void Serialize (Buffer::Iterator start) const
 Serialize to a buffer. More...
 
- Public Member Functions inherited from ns3::TlvValue
virtual ~TlvValue ()
 

Private Attributes

uint8_t m_value
 value More...
 

Detailed Description

U8TlvValue class.

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

Constructor & Destructor Documentation

◆ U8TlvValue() [1/2]

ns3::U8TlvValue::U8TlvValue ( uint8_t  value)

Constructor.

Parameters
valuevalue to encode

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

References m_value.

◆ U8TlvValue() [2/2]

ns3::U8TlvValue::U8TlvValue ( )

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

References m_value.

Referenced by Copy().

◆ ~U8TlvValue()

ns3::U8TlvValue::~U8TlvValue ( void  )

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

Member Function Documentation

◆ Copy()

U8TlvValue * ns3::U8TlvValue::Copy ( void  ) const
virtual

Copy.

Returns
a U8 TLV value

Implements ns3::TlvValue.

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

References m_value, and U8TlvValue().

◆ Deserialize() [1/2]

uint32_t ns3::U8TlvValue::Deserialize ( Buffer::Iterator  start,
uint64_t  valueLen 
)
virtual

Deserialize from a buffer.

Parameters
startthe iterator
valueLenthe maximum length of the value
Returns
the

Implements ns3::TlvValue.

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

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

◆ Deserialize() [2/2]

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

Deserialize from a buffer.

Parameters
startthe iterator
Returns
the size of the item

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

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

◆ GetSerializedSize()

uint32_t ns3::U8TlvValue::GetSerializedSize ( void  ) const
virtual

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

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

◆ GetValue()

uint8_t ns3::U8TlvValue::GetValue ( void  ) const

Get value.

Returns
the value

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

References m_value.

◆ Serialize()

void ns3::U8TlvValue::Serialize ( Buffer::Iterator  start) const
virtual

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

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

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

Member Data Documentation

◆ m_value

uint8_t ns3::U8TlvValue::m_value
private

value

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

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


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