A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
drop-tail-queue.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007 University of Washington
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*/
18
19
#ifndef DROPTAIL_H
20
#define DROPTAIL_H
21
22
#include <queue>
23
#include "ns3/queue.h"
24
25
namespace
ns3 {
26
32
class
DropTailQueue
:
public
Queue
33
{
34
public
:
39
static
TypeId
GetTypeId
(
void
);
45
DropTailQueue
();
46
47
virtual
~DropTailQueue
();
48
49
private
:
50
virtual
bool
DoEnqueue
(
Ptr<QueueItem>
item);
51
virtual
Ptr<QueueItem>
DoDequeue
(
void
);
52
virtual
Ptr<QueueItem>
DoRemove
(
void
);
53
virtual
Ptr<const QueueItem>
DoPeek
(
void
)
const
;
54
55
std::queue<Ptr<QueueItem> >
m_packets
;
56
};
57
58
}
// namespace ns3
59
60
#endif
/* DROPTAIL_H */
ns3::DropTailQueue::DoEnqueue
virtual bool DoEnqueue(Ptr< QueueItem > item)
Push an item in the queue.
Definition:
drop-tail-queue.cc:51
ns3::DropTailQueue::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
drop-tail-queue.cc:28
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::DropTailQueue::DoDequeue
virtual Ptr< QueueItem > DoDequeue(void)
Pull the item to dequeue from the queue.
Definition:
drop-tail-queue.cc:62
ns3::DropTailQueue::m_packets
std::queue< Ptr< QueueItem > > m_packets
the items in the queue
Definition:
drop-tail-queue.h:55
ns3::Queue
Abstract base class for packet Queues.
Definition:
queue.h:44
ns3::DropTailQueue::DoPeek
virtual Ptr< const QueueItem > DoPeek(void) const
Peek the front item in the queue.
Definition:
drop-tail-queue.cc:90
ns3::DropTailQueue::DoRemove
virtual Ptr< QueueItem > DoRemove(void)
Pull the item to drop from the queue.
Definition:
drop-tail-queue.cc:76
ns3::DropTailQueue::~DropTailQueue
virtual ~DropTailQueue()
Definition:
drop-tail-queue.cc:45
ns3::DropTailQueue::DropTailQueue
DropTailQueue()
DropTailQueue Constructor.
Definition:
drop-tail-queue.cc:38
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::DropTailQueue
A FIFO packet queue that drops tail-end packets on overflow.
Definition:
drop-tail-queue.h:32
src
network
utils
drop-tail-queue.h
Generated on Wed Jul 6 2016 17:11:37 for ns-3 by
1.8.6