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

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

#include <packet.h>

Classes

class  Item
 

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.

Member Function Documentation

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

Definition at line 96 of file packet.cc.

References NS_LOG_FUNCTION.

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

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

Definition at line 102 of file packet.cc.

References HasNext(), NS_ASSERT, and NS_LOG_FUNCTION.

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


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