23 #include "ns3/packet.h"
38 .SetGroupName(
"Network")
76 burst->AddPacket (packet);
91 std::list<Ptr<Packet> >
119 std::list<Ptr<Packet> >::const_iterator
126 std::list<Ptr<Packet> >::const_iterator
A base class which provides memory management and object aggregation.
this class implement a burst as a list of packets
std::list< Ptr< Packet > > GetPackets(void) const
std::list< Ptr< Packet > > m_packets
the list of packets in the burst
virtual ~PacketBurst(void)
void DoDispose(void)
Destructor implementation.
uint32_t GetSize(void) const
std::list< Ptr< Packet > >::const_iterator Begin(void) const
Returns an iterator to the begin of the burst.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< PacketBurst > Copy(void) const
std::list< Ptr< Packet > >::const_iterator End(void) const
Returns an iterator to the end of the burst.
uint32_t GetNPackets(void) const
void AddPacket(Ptr< Packet > packet)
add a packet to the list of packet
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.