ProtocolTlvValue class. More...
#include "wimax-tlv.h"
Public Types | |
typedef std::vector< uint8_t >::const_iterator | Iterator |
Iterator typedef. More... | |
Public Member Functions | |
ProtocolTlvValue () | |
~ProtocolTlvValue () | |
void | Add (uint8_t protocol) |
Add protocol number. More... | |
Iterator | Begin () const |
Begin iterator. More... | |
virtual ProtocolTlvValue * | Copy (void) const |
Copy. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLength) |
Deserialize from a buffer. More... | |
Iterator | End () const |
End iterator. 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 | |
std::vector< uint8_t > * | m_protocol |
protocol More... | |
ProtocolTlvValue class.
Definition at line 516 of file wimax-tlv.h.
typedef std::vector<uint8_t>::const_iterator ns3::ProtocolTlvValue::Iterator |
Iterator typedef.
Definition at line 522 of file wimax-tlv.h.
ns3::ProtocolTlvValue::ProtocolTlvValue | ( | ) |
ns3::ProtocolTlvValue::~ProtocolTlvValue | ( | ) |
Definition at line 954 of file wimax-tlv.cc.
References m_protocol.
void ns3::ProtocolTlvValue::Add | ( | uint8_t | protocol | ) |
Add protocol number.
protocol | the protocol number |
Definition at line 992 of file wimax-tlv.cc.
References m_protocol.
Referenced by Copy(), Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
ProtocolTlvValue::Iterator ns3::ProtocolTlvValue::Begin | ( | void | ) | const |
Begin iterator.
Definition at line 998 of file wimax-tlv.cc.
References m_protocol.
|
virtual |
Copy.
Implements ns3::TlvValue.
Definition at line 1010 of file wimax-tlv.cc.
References Add(), m_protocol, and ProtocolTlvValue().
|
virtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implements ns3::TlvValue.
Definition at line 980 of file wimax-tlv.cc.
References Add(), and ns3::Buffer::Iterator::ReadU8().
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().
ProtocolTlvValue::Iterator ns3::ProtocolTlvValue::End | ( | void | ) | const |
End iterator.
Definition at line 1004 of file wimax-tlv.cc.
References m_protocol.
|
virtual |
Get serialized size in bytes.
Implements ns3::TlvValue.
Definition at line 965 of file wimax-tlv.cc.
References m_protocol.
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize(), and ns3::IpcsClassifierRecord::ToTlv().
|
virtual |
Serialize to a buffer.
start | the iterator |
Implements ns3::TlvValue.
Definition at line 971 of file wimax-tlv.cc.
References m_protocol, and ns3::Buffer::Iterator::WriteU8().
|
private |
protocol
Definition at line 547 of file wimax-tlv.h.
Referenced by Add(), Begin(), Copy(), End(), GetSerializedSize(), ProtocolTlvValue(), Serialize(), and ~ProtocolTlvValue().