A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PacketTagIterator Class Reference

Iterator over the set of packet tags in a packet. More...

#include <packet.h>

+ Collaboration diagram for ns3::PacketTagIterator:

Classes

class  Item
 Identifies a packet tag within a packet. More...
 

Public Member Functions

bool HasNext (void) const
 
Item Next (void)
 

Private Member Functions

 PacketTagIterator (const struct PacketTagList::TagData *head)
 

Private Attributes

const struct
PacketTagList::TagData
m_current
 

Friends

class Packet
 

Detailed Description

Iterator over the set of packet tags in a packet.

This is a java-style iterator.

Definition at line 113 of file packet.h.

Constructor & Destructor Documentation

ns3::PacketTagIterator::PacketTagIterator ( const struct PacketTagList::TagData head)
private

Definition at line 84 of file packet.cc.

Member Function Documentation

bool ns3::PacketTagIterator::HasNext ( void  ) const
Returns
true if calling Next is safe, false otherwise.

Definition at line 89 of file packet.cc.

References m_current.

Referenced by Next(), and ns3::Packet::PrintPacketTags().

+ Here is the caller graph for this function:

PacketTagIterator::Item ns3::PacketTagIterator::Next ( void  )
Returns
the next item found and prepare for the next one.

Definition at line 94 of file packet.cc.

References HasNext(), m_current, ns3::PacketTagList::TagData::next, and NS_ASSERT.

Referenced by ns3::Packet::PrintPacketTags().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Packet
friend

Definition at line 149 of file packet.h.

Referenced by ns3::Packet::Copy().

Member Data Documentation

const struct PacketTagList::TagData* ns3::PacketTagIterator::m_current
private

Definition at line 151 of file packet.h.

Referenced by HasNext(), and Next().


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