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

ProtocolTlvValue class. More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::ProtocolTlvValue:
+ Collaboration diagram for ns3::ProtocolTlvValue:

Public Types

typedef std::vector< uint8_t >::const_iterator Iterator
 Iterator typedef. More...
 

Public Member Functions

 ProtocolTlvValue ()
 
 ~ProtocolTlvValue () override
 
void Add (uint8_t protocol)
 Add protocol number. More...
 
Iterator Begin () const
 Begin iterator. More...
 
ProtocolTlvValueCopy () const override
 Copy. More...
 
uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLength) override
 Deserialize from a buffer. More...
 
Iterator End () const
 End iterator. More...
 
uint32_t GetSerializedSize () const override
 Get serialized size in bytes. More...
 
void Serialize (Buffer::Iterator start) const override
 Serialize to a buffer. More...
 
- Public Member Functions inherited from ns3::TlvValue
virtual ~TlvValue ()
 

Private Attributes

std::vector< uint8_t > * m_protocol
 protocol More...
 

Detailed Description

ProtocolTlvValue class.

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

Member Typedef Documentation

◆ Iterator

typedef std::vector<uint8_t>::const_iterator ns3::ProtocolTlvValue::Iterator

Iterator typedef.

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

Constructor & Destructor Documentation

◆ ProtocolTlvValue()

ns3::ProtocolTlvValue::ProtocolTlvValue ( )

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

References m_protocol.

Referenced by Copy().

+ Here is the caller graph for this function:

◆ ~ProtocolTlvValue()

ns3::ProtocolTlvValue::~ProtocolTlvValue ( )
override

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

References m_protocol.

Member Function Documentation

◆ Add()

void ns3::ProtocolTlvValue::Add ( uint8_t  protocol)

Add protocol number.

Parameters
protocolthe protocol number

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

References m_protocol.

Referenced by Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().

+ Here is the caller graph for this function:

◆ Begin()

ProtocolTlvValue::Iterator ns3::ProtocolTlvValue::Begin ( void  ) const

Begin iterator.

Returns
the beginning element

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

References m_protocol.

◆ Copy()

ProtocolTlvValue * ns3::ProtocolTlvValue::Copy ( void  ) const
overridevirtual

Copy.

Returns
the protocol tlv value

Implements ns3::TlvValue.

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

References ProtocolTlvValue(), and m_protocol.

+ Here is the call graph for this function:

◆ Deserialize()

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

References Add(), 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:

◆ End()

ProtocolTlvValue::Iterator ns3::ProtocolTlvValue::End ( void  ) const

End iterator.

Returns
the ending element

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

References m_protocol.

◆ GetSerializedSize()

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

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

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

References m_protocol.

Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().

+ Here is the caller graph for this function:

◆ Serialize()

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

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

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

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

+ Here is the call graph for this function:

Member Data Documentation

◆ m_protocol

std::vector<uint8_t>* ns3::ProtocolTlvValue::m_protocol
private

protocol

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

Referenced by ProtocolTlvValue(), ~ProtocolTlvValue(), Add(), Begin(), Copy(), End(), GetSerializedSize(), and Serialize().


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