A FIFO packet queue that drops tail-end packets on overflow. More...
#include <drop-tail-queue.h>
Inheritance diagram for ns3::DropTailQueue:Public Member Functions | |
| DropTailQueue () | |
| DropTailQueue Constructor. More... | |
| DropTailQueue::QueueMode | GetMode (void) |
| void | SetMode (DropTailQueue::QueueMode mode) |
Public Member Functions inherited from ns3::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 | |
| 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 | Initialize (void) |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| 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 | |
| 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) |
Static Public Member Functions inherited from ns3::Queue | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::Object | |
| static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| static void | Cleanup (void) |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId (void) |
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) |
Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| virtual void | DoDispose (void) |
| virtual void | DoInitialize (void) |
| virtual void | NotifyNewAggregate (void) |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| virtual void | NotifyConstructionCompleted (void) |
A FIFO packet queue that drops tail-end packets on overflow.
ns3::DropTailQueue is accessible through the following paths with Config::Set and Config::Connect:
No TraceSources are defined for this type.
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.
| DropTailQueue::QueueMode ns3::DropTailQueue::GetMode | ( | void | ) |
Get the encapsulation mode of this device.
Definition at line 77 of file drop-tail-queue.cc.
References NS_LOG_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 NS_LOG_FUNCTION.