ns3::TagIterator Class Reference
[Packet]

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

#include <packet.h>

Collaboration diagram for ns3::TagIterator:
Collaboration graph
[legend]

List of all members.

Classes

class  Item

Public Member Functions

bool HasNext (void) const
Item Next (void)

Private Member Functions

 TagIterator (TagList::Iterator i)

Private Attributes

TagList::Iterator m_current

Friends

class Packet

Detailed Description

Iterator over the set of tags in a packet.

This is a java-style iterator.

Definition at line 48 of file packet.h.


Constructor & Destructor Documentation

ns3::TagIterator::TagIterator ( TagList::Iterator  i  )  [private]

Definition at line 74 of file packet.cc.


Member Function Documentation

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

Definition at line 61 of file packet.cc.

References ns3::TagList::Iterator::HasNext(), and m_current.

Referenced by ns3::PacketTest::DoCheck(), ns3::Packet::FindFirstMatchingTag(), and ns3::Packet::PrintTags().

TagIterator::Item ns3::TagIterator::Next ( void   ) 

Friends And Related Function Documentation

friend class Packet [friend]

Definition at line 100 of file packet.h.


Member Data Documentation

Definition at line 102 of file packet.h.

Referenced by HasNext(), and Next().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:09:59 2009 for NS-3 by  doxygen 1.6.3