A FIFO packet queue that drops tail-end packets on overflow. More...
#include <drop-tail-queue.h>
Inheritance diagram for ns3::DropTailQueue:
Collaboration diagram for ns3::DropTailQueue:Public Member Functions | |
| DropTailQueue () | |
| DropTailQueue Constructor. | |
| virtual | ~DropTailQueue () |
| DropTailQueue::QueueMode | GetMode (void) |
| void | SetMode (DropTailQueue::QueueMode mode) |
Public Member Functions inherited from ns3::Queue | |
| Queue () | |
| virtual | ~Queue () |
| Ptr< Packet > | Dequeue (void) |
| void | DequeueAll (void) |
| bool | Enqueue (Ptr< Packet > p) |
| uint32_t | GetNBytes (void) const |
| uint32_t | GetNPackets (void) const |
| uint32_t | GetTotalDroppedBytes (void) const |
| uint32_t | GetTotalDroppedPackets (void) const |
| uint32_t | GetTotalReceivedBytes (void) const |
| uint32_t | GetTotalReceivedPackets (void) const |
| bool | IsEmpty (void) const |
| Ptr< const Packet > | Peek (void) const |
| void | ResetStatistics (void) |
Public Member Functions inherited from ns3::Object | |
| Object () | |
| virtual | ~Object () |
| void | AggregateObject (Ptr< Object > other) |
| void | Dispose (void) |
| AggregateIterator | GetAggregateIterator (void) const |
| virtual TypeId | GetInstanceTypeId (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (void) const |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| void | Start (void) |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| SimpleRefCount (const SimpleRefCount &o) | |
| uint32_t | GetReferenceCount (void) const |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| void | Ref (void) const |
| void | Unref (void) const |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| void | GetAttribute (std::string name, AttributeValue &value) const |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| This method returns the TypeId associated to ns3::DropTailQueue. | |
Private Member Functions | |
| virtual Ptr< Packet > | DoDequeue (void) |
| virtual bool | DoEnqueue (Ptr< Packet > p) |
| virtual Ptr< const Packet > | DoPeek (void) const |
Private Attributes | |
| uint32_t | m_bytesInQueue |
| uint32_t | m_maxBytes |
| uint32_t | m_maxPackets |
| QueueMode | m_mode |
| std::queue< Ptr< Packet > > | m_packets |
Additional Inherited Members | |
Public Types inherited from ns3::Queue | |
| enum | QueueMode { QUEUE_MODE_PACKETS, QUEUE_MODE_BYTES } |
| Enumeration of the modes supported in the class. More... | |
Protected Member Functions inherited from ns3::Queue | |
| void | Drop (Ptr< Packet > packet) |
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 56 of file drop-tail-queue.cc.
References NS_LOG_FUNCTION_NOARGS.
|
virtual |
Definition at line 64 of file drop-tail-queue.cc.
References NS_LOG_FUNCTION_NOARGS.
Definition at line 112 of file drop-tail-queue.cc.
References ns3::Packet::GetSize(), m_bytesInQueue, m_packets, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
Here is the call graph for this function:Definition at line 84 of file drop-tail-queue.cc.
References ns3::Queue::Drop(), ns3::Packet::GetSize(), m_bytesInQueue, m_maxBytes, m_maxPackets, m_mode, m_packets, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Queue::QUEUE_MODE_BYTES, and ns3::Queue::QUEUE_MODE_PACKETS.
Here is the call graph for this function:Definition at line 135 of file drop-tail-queue.cc.
References m_bytesInQueue, m_packets, NS_LOG_FUNCTION, and NS_LOG_LOGIC.
| DropTailQueue::QueueMode ns3::DropTailQueue::GetMode | ( | void | ) |
Get the encapsulation mode of this device.
Definition at line 77 of file drop-tail-queue.cc.
References m_mode, and NS_LOG_FUNCTION_NOARGS.
|
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 30 of file drop-tail-queue.cc.
References m_maxBytes, m_maxPackets, ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), ns3::Queue::QUEUE_MODE_BYTES, ns3::Queue::QUEUE_MODE_PACKETS, SetMode(), and ns3::TypeId::SetParent().
Here is the call graph for this function:| void ns3::DropTailQueue::SetMode | ( | DropTailQueue::QueueMode | mode | ) |
Set the operating mode of this device.
| mode | The operating mode of this device. |
Definition at line 70 of file drop-tail-queue.cc.
References m_mode, and NS_LOG_FUNCTION.
Referenced by GetTypeId().
Here is the caller graph for this function:
|
private |
Definition at line 70 of file drop-tail-queue.h.
Referenced by DoDequeue(), DoEnqueue(), and DoPeek().
|
private |
Definition at line 69 of file drop-tail-queue.h.
Referenced by DoEnqueue(), and GetTypeId().
|
private |
Definition at line 68 of file drop-tail-queue.h.
Referenced by DoEnqueue(), and GetTypeId().
|
private |
Definition at line 71 of file drop-tail-queue.h.
Referenced by DoEnqueue(), GetMode(), and SetMode().
Definition at line 67 of file drop-tail-queue.h.
Referenced by DoDequeue(), DoEnqueue(), and DoPeek().