A Discrete-Event Network Simulator
API
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. More...
 
 ~TosTlvValue ()
 
virtual TosTlvValueCopy () const
 Copy. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLength)
 Deserialize from a buffer. More...
 
uint8_t GetHigh (void) const
 Get high part. More...
 
uint8_t GetLow (void) const
 Get low part. More...
 
uint8_t GetMask (void) const
 Get the mask. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get serialized size in bytes. 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_high
 high More...
 
uint8_t m_low
 low More...
 
uint8_t m_mask
 mask More...
 

Detailed Description

TosTlvValue class.

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

Constructor & Destructor Documentation

ns3::TosTlvValue::TosTlvValue ( )

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

References m_high, m_low, and m_mask.

Referenced by Copy().

+ Here is the caller graph for this function:

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

Constructor.

Parameters
lowlow value
highhigh value
maskthe mask

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

References m_high, m_low, and m_mask.

ns3::TosTlvValue::~TosTlvValue ( )

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

Member Function Documentation

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

Copy.

Returns
the TOS TLV value

Implements ns3::TlvValue.

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

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

+ Here is the call graph for this function:

uint32_t ns3::TosTlvValue::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 850 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:

uint8_t ns3::TosTlvValue::GetHigh ( void  ) const

Get high part.

Returns
the high part

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

References m_high.

uint8_t ns3::TosTlvValue::GetLow ( void  ) const

Get low part.

Returns
the low part

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

References m_low.

uint8_t ns3::TosTlvValue::GetMask ( void  ) const

Get the mask.

Returns
the mask

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

References m_mask.

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

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

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

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

+ Here is the caller graph for this function:

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

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

Definition at line 843 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

uint8_t ns3::TosTlvValue::m_high
private

high

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

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

uint8_t ns3::TosTlvValue::m_low
private

low

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

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

uint8_t ns3::TosTlvValue::m_mask
private

mask

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

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


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