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
list-scheduler.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2005 INRIA
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
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
21
#ifndef LIST_SCHEDULER_H
22
#define LIST_SCHEDULER_H
23
24
#include "
scheduler.h
"
25
#include <list>
26
#include <utility>
27
#include <stdint.h>
28
35
namespace
ns3
{
36
37
class
EventImpl;
38
46
class
ListScheduler
:
public
Scheduler
47
{
48
public
:
49
static
TypeId
GetTypeId
(
void
);
50
51
ListScheduler
();
52
virtual
~ListScheduler
();
53
54
virtual
void
Insert
(
const
Event &ev);
55
virtual
bool
IsEmpty
(
void
)
const
;
56
virtual
Event
PeekNext
(
void
)
const
;
57
virtual
Event
RemoveNext
(
void
);
58
virtual
void
Remove
(
const
Event &ev);
59
60
private
:
61
typedef
std::list<Event>
Events
;
62
typedef
std::list<Event>::iterator
EventsI
;
63
Events
m_events
;
64
};
65
66
}
// namespace ns3
67
68
#endif
/* LIST_SCHEDULER_H */
ns3::ListScheduler::EventsI
std::list< Event >::iterator EventsI
Definition:
list-scheduler.h:62
ns3::ListScheduler::RemoveNext
virtual Event RemoveNext(void)
This method cannot be invoked if the list is empty.
Definition:
list-scheduler.cc:87
ns3::ListScheduler::Remove
virtual void Remove(const Event &ev)
Definition:
list-scheduler.cc:96
ns3::ListScheduler::PeekNext
virtual Event PeekNext(void) const
Definition:
list-scheduler.cc:80
ns3::ListScheduler::IsEmpty
virtual bool IsEmpty(void) const
Definition:
list-scheduler.cc:74
scheduler.h
ns3::Scheduler abstract base class, ns3::Scheduler::Event and ns3::Scheduler::EventKey declarations...
ns3::Scheduler
Maintain the event list.
Definition:
scheduler.h:66
ns3::ListScheduler::Insert
virtual void Insert(const Event &ev)
Definition:
list-scheduler.cc:60
ns3::ListScheduler::GetTypeId
static TypeId GetTypeId(void)
Definition:
list-scheduler.cc:41
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ListScheduler::~ListScheduler
virtual ~ListScheduler()
Definition:
list-scheduler.cc:55
ns3::ListScheduler::Events
std::list< Event > Events
Definition:
list-scheduler.h:61
ns3::ListScheduler::m_events
Events m_events
Definition:
list-scheduler.h:63
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:57
ns3::ListScheduler
a std::list event scheduler
Definition:
list-scheduler.h:46
ns3::ListScheduler::ListScheduler
ListScheduler()
Definition:
list-scheduler.cc:51
src
core
model
list-scheduler.h
Generated on Wed May 13 2015 14:59:11 for ns-3 by
1.8.9.1