PortRangeTlvValue class. More...
#include "wimax-tlv.h"
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. | |
PortRangeTlvValue * | Copy () 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 () |
Private Attributes | |
std::vector< PortRange > * | m_portRange |
port range | |
PortRangeTlvValue class.
Definition at line 472 of file wimax-tlv.h.
typedef std::vector<PortRange>::const_iterator ns3::PortRangeTlvValue::Iterator |
PortRange vector iterator typedef.
Definition at line 483 of file wimax-tlv.h.
ns3::PortRangeTlvValue::PortRangeTlvValue | ( | ) |
Definition at line 850 of file wimax-tlv.cc.
References m_portRange.
Referenced by Copy().
|
override |
Definition at line 855 of file wimax-tlv.cc.
References m_portRange.
void ns3::PortRangeTlvValue::Add | ( | uint16_t | portLow, |
uint16_t | portHigh ) |
Add a range.
portLow | the low port of the range |
portHigh | the high port of the range |
Definition at line 892 of file wimax-tlv.cc.
References m_portRange, ns3::PortRangeTlvValue::PortRange::PortHigh, and ns3::PortRangeTlvValue::PortRange::PortLow.
Referenced by Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
PortRangeTlvValue::Iterator ns3::PortRangeTlvValue::Begin | ( | ) | const |
Begin iterator.
Definition at line 901 of file wimax-tlv.cc.
References m_portRange.
|
overridevirtual |
Copy.
Implements ns3::TlvValue.
Definition at line 913 of file wimax-tlv.cc.
References PortRangeTlvValue(), and m_portRange.
|
overridevirtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implements ns3::TlvValue.
Definition at line 878 of file wimax-tlv.cc.
References Add(), and ns3::Buffer::Iterator::ReadNtohU16().
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().
PortRangeTlvValue::Iterator ns3::PortRangeTlvValue::End | ( | ) | const |
End iterator.
Definition at line 907 of file wimax-tlv.cc.
References m_portRange.
|
overridevirtual |
Get serialized size in bytes.
Implements ns3::TlvValue.
Definition at line 862 of file wimax-tlv.cc.
References m_portRange.
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
|
overridevirtual |
Serialize to a buffer.
start | the iterator |
Implements ns3::TlvValue.
Definition at line 868 of file wimax-tlv.cc.
References m_portRange, and ns3::Buffer::Iterator::WriteHtonU16().
|
private |
port range
Definition at line 512 of file wimax-tlv.h.
Referenced by PortRangeTlvValue(), ~PortRangeTlvValue(), Add(), Begin(), Copy(), End(), GetSerializedSize(), and Serialize().