TosTlvValue class. More...
#include "wimax-tlv.h"
Public Member Functions | |
TosTlvValue () | |
TosTlvValue (uint8_t low, uint8_t high, uint8_t mask) | |
Constructor. More... | |
~TosTlvValue () override | |
TosTlvValue * | Copy () const override |
Copy. More... | |
uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLength) override |
Deserialize from a buffer. More... | |
uint8_t | GetHigh () const |
Get high part. More... | |
uint8_t | GetLow () const |
Get low part. More... | |
uint8_t | GetMask () const |
Get the mask. 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 | |
uint8_t | m_high |
high More... | |
uint8_t | m_low |
low More... | |
uint8_t | m_mask |
mask More... | |
TosTlvValue class.
Definition at line 435 of file wimax-tlv.h.
ns3::TosTlvValue::TosTlvValue | ( | ) |
ns3::TosTlvValue::TosTlvValue | ( | uint8_t | low, |
uint8_t | high, | ||
uint8_t | mask | ||
) |
Constructor.
low | low value |
high | high value |
mask | the mask |
Definition at line 809 of file wimax-tlv.cc.
|
override |
Definition at line 816 of file wimax-tlv.cc.
|
overridevirtual |
Copy.
Implements ns3::TlvValue.
Definition at line 862 of file wimax-tlv.cc.
References TosTlvValue(), m_high, m_low, and m_mask.
|
overridevirtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implements ns3::TlvValue.
Definition at line 835 of file wimax-tlv.cc.
References m_high, m_low, m_mask, and ns3::Buffer::Iterator::ReadU8().
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().
uint8_t ns3::TosTlvValue::GetHigh | ( | ) | const |
uint8_t ns3::TosTlvValue::GetLow | ( | ) | const |
uint8_t ns3::TosTlvValue::GetMask | ( | ) | const |
|
overridevirtual |
Get serialized size in bytes.
Implements ns3::TlvValue.
Definition at line 821 of file wimax-tlv.cc.
Referenced by ns3::ClassificationRuleVectorTlvValue::Deserialize().
|
overridevirtual |
Serialize to a buffer.
start | the iterator |
Implements ns3::TlvValue.
Definition at line 827 of file wimax-tlv.cc.
References m_high, m_low, m_mask, and ns3::Buffer::Iterator::WriteU8().
|
private |
high
Definition at line 474 of file wimax-tlv.h.
Referenced by TosTlvValue(), Copy(), Deserialize(), GetHigh(), and Serialize().
|
private |
low
Definition at line 473 of file wimax-tlv.h.
Referenced by TosTlvValue(), Copy(), Deserialize(), GetLow(), and Serialize().
|
private |
mask
Definition at line 475 of file wimax-tlv.h.
Referenced by TosTlvValue(), Copy(), Deserialize(), GetMask(), and Serialize().