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
pfifo-fast-queue-disc.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007, 2014 University of Washington
4
* 2015 Universita' degli Studi di Napoli Federico II
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation;
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* Authors: Stefano Avallone <stavallo@unina.it>
20
* Tom Henderson <tomhend@u.washington.edu>
21
*/
22
23
#ifndef PFIFO_FAST_H
24
#define PFIFO_FAST_H
25
26
#include "ns3/queue-disc.h"
27
28
namespace
ns3
{
29
57
class
PfifoFastQueueDisc
:
public
QueueDisc
{
58
public
:
63
static
TypeId
GetTypeId
(
void
);
69
PfifoFastQueueDisc
();
70
71
virtual
~PfifoFastQueueDisc
();
72
73
private
:
74
virtual
bool
DoEnqueue
(
Ptr<QueueDiscItem>
item);
75
virtual
Ptr<QueueDiscItem>
DoDequeue
(
void
);
76
virtual
Ptr<const QueueDiscItem>
DoPeek
(
void
)
const
;
77
virtual
bool
CheckConfig
(
void
);
78
virtual
void
InitializeParams
(
void
);
79
80
uint32_t
m_limit
;
81
};
82
83
}
// namespace ns3
84
85
#endif
/* PFIFO_FAST_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::PfifoFastQueueDisc::~PfifoFastQueueDisc
virtual ~PfifoFastQueueDisc()
Definition:
pfifo-fast-queue-disc.cc:55
ns3::PfifoFastQueueDisc::InitializeParams
virtual void InitializeParams(void)
Initialize parameters (if any) before the first packet is enqueued.
Definition:
pfifo-fast-queue-disc.cc:196
ns3::QueueDisc
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
Definition:
queue-disc.h:205
ns3::PfifoFastQueueDisc::CheckConfig
virtual bool CheckConfig(void)
Check whether the current configuration is correct.
Definition:
pfifo-fast-queue-disc.cc:142
ns3::PfifoFastQueueDisc::m_limit
uint32_t m_limit
Maximum number of packets that can be stored.
Definition:
pfifo-fast-queue-disc.h:80
ns3::PfifoFastQueueDisc::DoPeek
virtual Ptr< const QueueDiscItem > DoPeek(void) const
This function returns a copy of the next packet the queue disc will extract.
Definition:
pfifo-fast-queue-disc.cc:123
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::PfifoFastQueueDisc::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
pfifo-fast-queue-disc.cc:35
ns3::PfifoFastQueueDisc::DoEnqueue
virtual bool DoEnqueue(Ptr< QueueDiscItem > item)
This function actually enqueues a packet into the queue disc.
Definition:
pfifo-fast-queue-disc.cc:61
ns3::PfifoFastQueueDisc
Linux pfifo_fast is the default priority queue enabled on Linux systems.
Definition:
pfifo-fast-queue-disc.h:57
ns3::PfifoFastQueueDisc::DoDequeue
virtual Ptr< QueueDiscItem > DoDequeue(void)
This function actually extracts a packet from the queue disc.
Definition:
pfifo-fast-queue-disc.cc:102
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::PfifoFastQueueDisc::PfifoFastQueueDisc
PfifoFastQueueDisc()
PfifoFastQueueDisc constructor.
Definition:
pfifo-fast-queue-disc.cc:50
src
traffic-control
model
pfifo-fast-queue-disc.h
Generated on Thu Mar 24 2016 00:46:54 for ns-3 by
1.8.9.1