23 #include "ns3/packet.h"
40 .SetGroupName(
"Network")
75 burst->AddPacket(packet);
90 std::list<Ptr<Packet>>
117 std::list<Ptr<Packet>>::const_iterator
124 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 > >::const_iterator End() const
Returns an iterator to the end of the burst.
static TypeId GetTypeId()
Get the type ID.
std::list< Ptr< Packet > > m_packets
the list of packets in the burst
std::list< Ptr< Packet > >::const_iterator Begin() const
Returns an iterator to the begin of the burst.
Ptr< PacketBurst > Copy() const
uint32_t GetNPackets() const
std::list< Ptr< Packet > > GetPackets() const
void DoDispose() override
Destructor implementation.
void AddPacket(Ptr< Packet > packet)
add a packet to the list of packet
uint32_t GetSize() const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
Ptr< Packet > Copy() const
performs a COW copy of the packet.
Smart pointer class similar to boost::intrusive_ptr.
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.