A FIFO packet queue that drops tail-end packets on overflow. More...
#include <drop-tail-queue.h>
Public Member Functions | |
DropTailQueue () | |
DropTailQueue Constructor. | |
virtual | ~DropTailQueue () |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::DropTailQueue. | |
Private Member Functions | |
virtual bool | DoEnqueue (Ptr< Packet > p) |
virtual Ptr< Packet > | DoDequeue (void) |
virtual Ptr< const Packet > | DoPeek (void) const |
Private Attributes | |
std::queue< Ptr< Packet > > | m_packets |
uint32_t | m_maxPackets |
A FIFO packet queue that drops tail-end packets on overflow.
Definition at line 35 of file drop-tail-queue.h.
ns3::DropTailQueue::DropTailQueue | ( | ) |
DropTailQueue Constructor.
Creates a droptail queue with a maximum size of 100 packets by default
Definition at line 43 of file drop-tail-queue.cc.
References NS_LOG_FUNCTION_NOARGS.
ns3::DropTailQueue::~DropTailQueue | ( | ) | [virtual] |
Definition at line 50 of file drop-tail-queue.cc.
References NS_LOG_FUNCTION_NOARGS.
Implements ns3::Queue.
Definition at line 72 of file drop-tail-queue.cc.
References m_packets, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Implements ns3::Queue.
Definition at line 56 of file drop-tail-queue.cc.
References ns3::Queue::Drop(), m_maxPackets, m_packets, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Implements ns3::Queue.
Definition at line 91 of file drop-tail-queue.cc.
References m_packets, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
TypeId ns3::DropTailQueue::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::DropTailQueue.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
TraceSources defined in parent class ns3::Queue:
Reimplemented from ns3::Queue.
Definition at line 29 of file drop-tail-queue.cc.
References ns3::TypeId::AddAttribute(), m_maxPackets, and ns3::TypeId::SetParent().
uint32_t ns3::DropTailQueue::m_maxPackets [private] |
Definition at line 54 of file drop-tail-queue.h.
Referenced by DoEnqueue(), and GetTypeId().
std::queue<Ptr<Packet> > ns3::DropTailQueue::m_packets [private] |
Definition at line 53 of file drop-tail-queue.h.
Referenced by DoDequeue(), DoEnqueue(), and DoPeek().