TosTlvValue class. More...
#include "wimax-tlv.h"
Inheritance diagram for ns3::TosTlvValue:
Collaboration diagram for ns3::TosTlvValue:Public Member Functions | |
| TosTlvValue () | |
| TosTlvValue (uint8_t low, uint8_t high, uint8_t mask) | |
| Constructor. | |
| ~TosTlvValue () override | |
| TosTlvValue * | Copy () const override |
| Copy. | |
| uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLength) override |
| Deserialize from a buffer. | |
| uint8_t | GetHigh () const |
| Get high part. | |
| uint8_t | GetLow () const |
| Get low part. | |
| uint8_t | GetMask () const |
| Get the mask. | |
| 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 TlvValue * | Copy () 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 | |
| uint8_t | m_high |
| high | |
| uint8_t | m_low |
| low | |
| uint8_t | m_mask |
| mask | |
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.
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
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().