Iterator over the set of packet tags in a packet. More...
#include "packet.h"
Classes | |
class | Item |
Identifies a packet tag within a packet. More... | |
Public Member Functions | |
bool | HasNext () const |
Item | Next () |
Private Member Functions | |
PacketTagIterator (const PacketTagList::TagData *head) | |
Constructor. | |
Private Attributes | |
const PacketTagList::TagData * | m_current |
actual position over the set of tags in a packet | |
Friends | |
class | Packet |
Friend class. | |
Iterator over the set of packet tags in a packet.
This is a java-style iterator.
|
private |
bool ns3::PacketTagIterator::HasNext | ( | ) | const |
Definition at line 87 of file packet.cc.
References m_current.
Referenced by Next(), and ns3::Packet::PrintPacketTags().
PacketTagIterator::Item ns3::PacketTagIterator::Next | ( | ) |
Definition at line 93 of file packet.cc.
References HasNext(), m_current, ns3::PacketTagList::TagData::next, NS_ASSERT, and prev.
Referenced by ns3::Packet::PrintPacketTags().
|
friend |
|
private |