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

PortRangeTlvValue class. More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::PortRangeTlvValue:
+ Collaboration diagram for ns3::PortRangeTlvValue:

Classes

struct  PortRange
 PortRange structure. More...
 

Public Types

typedef std::vector< PortRange >::const_iterator Iterator
 PortRange vector iterator typedef.
 

Public Member Functions

 PortRangeTlvValue ()
 
 ~PortRangeTlvValue () override
 
void Add (uint16_t portLow, uint16_t portHigh)
 Add a range.
 
Iterator Begin () const
 Begin iterator.
 
PortRangeTlvValueCopy () const override
 Copy.
 
uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLength) override
 Deserialize from a buffer.
 
Iterator End () const
 End iterator.
 
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 ()
 
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

std::vector< PortRange > * m_portRange
 port range
 

Detailed Description

PortRangeTlvValue class.

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

Member Typedef Documentation

◆ Iterator

typedef std::vector<PortRange>::const_iterator ns3::PortRangeTlvValue::Iterator

PortRange vector iterator typedef.

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

Constructor & Destructor Documentation

◆ PortRangeTlvValue()

ns3::PortRangeTlvValue::PortRangeTlvValue ( )

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

References m_portRange.

Referenced by Copy().

+ Here is the caller graph for this function:

◆ ~PortRangeTlvValue()

ns3::PortRangeTlvValue::~PortRangeTlvValue ( )
override

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

References m_portRange.

Member Function Documentation

◆ Add()

void ns3::PortRangeTlvValue::Add ( uint16_t  portLow,
uint16_t  portHigh 
)

Add a range.

Parameters
portLowthe low port of the range
portHighthe high port of the range

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

References m_portRange, ns3::PortRangeTlvValue::PortRange::PortHigh, and ns3::PortRangeTlvValue::PortRange::PortLow.

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

+ Here is the caller graph for this function:

◆ Begin()

PortRangeTlvValue::Iterator ns3::PortRangeTlvValue::Begin ( ) const

Begin iterator.

Returns
the beginning element

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

References m_portRange.

◆ Copy()

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

Copy.

Returns
the port range tlv value

Implements ns3::TlvValue.

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

References PortRangeTlvValue(), and m_portRange.

+ Here is the call graph for this function:

◆ Deserialize()

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

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

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

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

◆ End()

PortRangeTlvValue::Iterator ns3::PortRangeTlvValue::End ( ) const

End iterator.

Returns
the ending element

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

References m_portRange.

◆ GetSerializedSize()

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

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

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

References m_portRange.

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

+ Here is the caller graph for this function:

◆ Serialize()

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

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

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

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

+ Here is the call graph for this function:

Member Data Documentation

◆ m_portRange

std::vector<PortRange>* ns3::PortRangeTlvValue::m_portRange
private

port range

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

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


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