A Discrete-Event Network Simulator
API
Public Types | Public Member Functions | Private Attributes | List of all members
ns3::VectorTlvValue Class Referenceabstract

this class is used to implement a vector of values in one tlv value field More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::VectorTlvValue:

Public Types

typedef std::vector< Tlv * >::const_iterator Iterator
 TLV vector iterator typedef. More...
 

Public Member Functions

 VectorTlvValue (void)
 
 ~VectorTlvValue (void)
 
void Add (const Tlv &val)
 Add a TLV. More...
 
Iterator Begin () const
 Begin iterator. More...
 
virtual VectorTlvValueCopy (void) const =0
 Copy. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLength)=0
 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< Tlv * > * m_tlvList
 tlv list More...
 

Detailed Description

this class is used to implement a vector of values in one tlv value field

Definition at line 289 of file wimax-tlv.h.

Member Typedef Documentation

◆ Iterator

typedef std::vector<Tlv*>::const_iterator ns3::VectorTlvValue::Iterator

TLV vector iterator typedef.

Definition at line 293 of file wimax-tlv.h.

Constructor & Destructor Documentation

◆ VectorTlvValue()

ns3::VectorTlvValue::VectorTlvValue ( void  )

Definition at line 235 of file wimax-tlv.cc.

References m_tlvList.

◆ ~VectorTlvValue()

ns3::VectorTlvValue::~VectorTlvValue ( void  )

Definition at line 240 of file wimax-tlv.cc.

References m_tlvList.

Member Function Documentation

◆ Add()

void ns3::VectorTlvValue::Add ( const Tlv val)

◆ Begin()

VectorTlvValue::Iterator ns3::VectorTlvValue::Begin ( void  ) const

Begin iterator.

Returns
the beginning element

Definition at line 272 of file wimax-tlv.cc.

References m_tlvList.

Referenced by ns3::SfVectorTlvValue::Copy(), ns3::CsParamVectorTlvValue::Copy(), ns3::ClassificationRuleVectorTlvValue::Copy(), and Ns3WimaxCsParamTlvTestCase::DoRun().

◆ Copy()

virtual VectorTlvValue* ns3::VectorTlvValue::Copy ( void  ) const
pure virtual

Copy.

Returns
the vector TLV value

Implements ns3::TlvValue.

Implemented in ns3::ClassificationRuleVectorTlvValue, ns3::CsParamVectorTlvValue, and ns3::SfVectorTlvValue.

◆ Deserialize()

virtual uint32_t ns3::VectorTlvValue::Deserialize ( Buffer::Iterator  start,
uint64_t  valueLen 
)
pure virtual

Deserialize from a buffer.

Parameters
startthe iterator
valueLenthe maximum length of the value
Returns
the

Implements ns3::TlvValue.

Implemented in ns3::ClassificationRuleVectorTlvValue, ns3::CsParamVectorTlvValue, and ns3::SfVectorTlvValue.

◆ End()

VectorTlvValue::Iterator ns3::VectorTlvValue::End ( void  ) const

◆ GetSerializedSize()

uint32_t ns3::VectorTlvValue::GetSerializedSize ( void  ) const
virtual

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

Definition at line 251 of file wimax-tlv.cc.

References m_tlvList.

Referenced by ns3::CsParamVectorTlvValue::Deserialize(), Ns3WimaxCsParamTlvTestCase::DoRun(), ns3::IpcsClassifierRecord::ToTlv(), ns3::CsParameters::ToTlv(), and ns3::ServiceFlow::ToTlv().

◆ Serialize()

void ns3::VectorTlvValue::Serialize ( Buffer::Iterator  start) const
virtual

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

Definition at line 262 of file wimax-tlv.cc.

References m_tlvList, and ns3::Buffer::Iterator::Next().

Member Data Documentation

◆ m_tlvList

std::vector<Tlv*>* ns3::VectorTlvValue::m_tlvList
private

tlv list

Definition at line 320 of file wimax-tlv.h.

Referenced by Add(), Begin(), End(), GetSerializedSize(), Serialize(), VectorTlvValue(), and ~VectorTlvValue().


The documentation for this class was generated from the following files: