this class is used to implement a vector of values in one tlv value field More...
#include "wimax-tlv.h"
Public Types | |
typedef std::vector< Tlv * >::const_iterator | Iterator |
TLV vector iterator typedef. More... | |
Public Member Functions | |
VectorTlvValue () | |
~VectorTlvValue () override | |
void | Add (const Tlv &val) |
Add a TLV. More... | |
Iterator | Begin () const |
Begin iterator. More... | |
VectorTlvValue * | Copy () const override=0 |
Copy. More... | |
uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLength) override=0 |
Deserialize from a buffer. More... | |
Iterator | End () const |
End iterator. 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 | |
std::vector< Tlv * > * | m_tlvList |
tlv list More... | |
this class is used to implement a vector of values in one tlv value field
Definition at line 296 of file wimax-tlv.h.
typedef std::vector<Tlv*>::const_iterator ns3::VectorTlvValue::Iterator |
TLV vector iterator typedef.
Definition at line 300 of file wimax-tlv.h.
ns3::VectorTlvValue::VectorTlvValue | ( | ) |
Definition at line 235 of file wimax-tlv.cc.
References m_tlvList.
|
override |
Definition at line 240 of file wimax-tlv.cc.
References m_tlvList.
void ns3::VectorTlvValue::Add | ( | const Tlv & | val | ) |
Add a TLV.
val | the TLV value |
Definition at line 284 of file wimax-tlv.cc.
References ns3::Tlv::Copy(), and m_tlvList.
Referenced by ns3::SfVectorTlvValue::Deserialize(), ns3::CsParamVectorTlvValue::Deserialize(), ns3::ClassificationRuleVectorTlvValue::Deserialize(), Ns3WimaxCsParamTlvTestCase::DoRun(), ns3::CsParameters::ToTlv(), ns3::IpcsClassifierRecord::ToTlv(), and ns3::ServiceFlow::ToTlv().
VectorTlvValue::Iterator ns3::VectorTlvValue::Begin | ( | void | ) | const |
Begin iterator.
Definition at line 272 of file wimax-tlv.cc.
References m_tlvList.
Referenced by ns3::CsParameters::CsParameters(), ns3::IpcsClassifierRecord::IpcsClassifierRecord(), ns3::ServiceFlow::ServiceFlow(), ns3::SfVectorTlvValue::Copy(), ns3::CsParamVectorTlvValue::Copy(), and ns3::ClassificationRuleVectorTlvValue::Copy().
|
overridepure virtual |
Copy.
Implements ns3::TlvValue.
Implemented in ns3::ClassificationRuleVectorTlvValue, ns3::CsParamVectorTlvValue, and ns3::SfVectorTlvValue.
|
overridepure virtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implements ns3::TlvValue.
Implemented in ns3::ClassificationRuleVectorTlvValue, ns3::CsParamVectorTlvValue, and ns3::SfVectorTlvValue.
VectorTlvValue::Iterator ns3::VectorTlvValue::End | ( | void | ) | const |
End iterator.
Definition at line 278 of file wimax-tlv.cc.
References m_tlvList.
Referenced by ns3::CsParameters::CsParameters(), ns3::IpcsClassifierRecord::IpcsClassifierRecord(), ns3::ServiceFlow::ServiceFlow(), ns3::SfVectorTlvValue::Copy(), ns3::CsParamVectorTlvValue::Copy(), and ns3::ClassificationRuleVectorTlvValue::Copy().
|
overridevirtual |
Get serialized size in bytes.
Implements ns3::TlvValue.
Definition at line 251 of file wimax-tlv.cc.
References m_tlvList.
Referenced by ns3::CsParamVectorTlvValue::Deserialize(), Ns3WimaxCsParamTlvTestCase::DoRun(), ns3::CsParameters::ToTlv(), ns3::IpcsClassifierRecord::ToTlv(), and ns3::ServiceFlow::ToTlv().
|
overridevirtual |
Serialize to a buffer.
start | the iterator |
Implements ns3::TlvValue.
Definition at line 262 of file wimax-tlv.cc.
References m_tlvList, and ns3::Buffer::Iterator::Next().
|
private |
tlv list
Definition at line 328 of file wimax-tlv.h.
Referenced by VectorTlvValue(), ~VectorTlvValue(), Add(), Begin(), End(), GetSerializedSize(), and Serialize().