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 (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 |
Iterator over the set of packet tags in a packet.
This is a java-style iterator.
|
private |
bool ns3::PacketTagIterator::HasNext | ( | void | ) | const |
Definition at line 89 of file packet.cc.
References m_current.
Referenced by Next(), and ns3::Packet::PrintPacketTags().
PacketTagIterator::Item ns3::PacketTagIterator::Next | ( | void | ) |
Definition at line 94 of file packet.cc.
References HasNext(), m_current, ns3::PacketTagList::TagData::next, and NS_ASSERT.
Referenced by ns3::Packet::PrintPacketTags().
|
friend |
Definition at line 149 of file packet.h.
Referenced by ns3::Packet::Copy().
|
private |