22 #include "ns3/queue.h"
31 template <
typename Item>
70 template <
typename Item>
76 .SetGroupName (
"Network")
77 .template AddConstructor<DropTailQueue<Item> > ()
78 .AddAttribute (
"MaxSize",
88 template <
typename Item>
96 template <
typename Item>
102 template <
typename Item>
108 return DoEnqueue (end (), item);
111 template <
typename Item>
124 template <
typename Item>
137 template <
typename Item>
143 return DoPeek (begin ());
Introspection did not find any typical Config paths.
A FIFO packet queue that drops tail-end packets on overflow.
NS_LOG_TEMPLATE_DECLARE
redefinition of the log component
virtual bool Enqueue(Ptr< Item > item)
Place an item into the Queue (each subclass defines the position)
static TypeId GetTypeId(void)
Get the type ID.
DropTailQueue()
DropTailQueue Constructor.
virtual Ptr< Item > Remove(void)
Remove an item from the Queue (each subclass defines the position), counting it and tracing it as bot...
virtual Ptr< const Item > Peek(void) const
Get a copy of an item in the queue (each subclass defines the position) without removing it.
virtual Ptr< Item > Dequeue(void)
Remove an item from the Queue (each subclass defines the position), counting it and tracing it as deq...
void SetMaxSize(QueueSize size)
Set the maximum size of this queue.
QueueSize GetMaxSize(void) const
Template class for packet Queues.
Class for representing queue sizes.
AttributeValue implementation for QueueSize.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< const AttributeChecker > MakeQueueSizeChecker(void)
Ptr< const AttributeAccessor > MakeQueueSizeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_LOG_TEMPLATE_DEFINE(name)
Initialize a reference to a Log component.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::string GetTypeParamName(void)
Helper function to get the name (as a string) of the type parameter of a template class.