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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
ipv4-routing-helper.h
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2008 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
#ifndef IPV4_ROUTING_HELPER_H
21
#define IPV4_ROUTING_HELPER_H
22
23
#include "ns3/ptr.h"
24
#include "ns3/nstime.h"
25
#include "ns3/output-stream-wrapper.h"
26
27
namespace
ns3 {
28
29
class
Ipv4RoutingProtocol;
30
class
Node;
31
41
class
Ipv4RoutingHelper
42
{
43
public
:
44
/*
45
* Destroy an instance of an Ipv4RoutingHelper
46
*/
47
virtual
~
Ipv4RoutingHelper
();
48
56
virtual
Ipv4RoutingHelper
*
Copy
(
void
)
const
= 0;
57
62
virtual
Ptr<Ipv4RoutingProtocol>
Create
(
Ptr<Node>
node)
const
= 0;
63
73
void
PrintRoutingTableAllAt
(
Time
printTime,
Ptr<OutputStreamWrapper>
stream)
const
;
74
84
void
PrintRoutingTableAllEvery
(
Time
printInterval,
Ptr<OutputStreamWrapper>
stream)
const
;
85
96
void
PrintRoutingTableAt
(
Time
printTime,
Ptr<Node>
node,
Ptr<OutputStreamWrapper>
stream)
const
;
97
108
void
PrintRoutingTableEvery
(
Time
printInterval,
Ptr<Node>
node,
Ptr<OutputStreamWrapper>
stream)
const
;
109
110
private
:
111
void
Print (
Ptr<Node>
node,
Ptr<OutputStreamWrapper>
stream)
const
;
112
void
PrintEvery (
Time
printInterval,
Ptr<Node>
node,
Ptr<OutputStreamWrapper>
stream)
const
;
113
};
114
115
}
// namespace ns3
116
117
118
#endif
/* IPV4_ROUTING_HELPER_H */
ns3::Time
keep track of time unit.
Definition:
nstime.h:149
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::Ipv4RoutingHelper::Copy
virtual Ipv4RoutingHelper * Copy(void) const =0
virtual constructor
ns3::Ipv4RoutingHelper
a factory to create ns3::Ipv4RoutingProtocol objects
Definition:
ipv4-routing-helper.h:41
ns3::Ipv4RoutingHelper::PrintRoutingTableAllAt
void PrintRoutingTableAllAt(Time printTime, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of all nodes at a particular time.
Definition:
ipv4-routing-helper.cc:33
ns3::Ipv4RoutingHelper::PrintRoutingTableAt
void PrintRoutingTableAt(Time printTime, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of a node at a particular time.
Definition:
ipv4-routing-helper.cc:53
ns3::Ipv4RoutingHelper::PrintRoutingTableAllEvery
void PrintRoutingTableAllEvery(Time printInterval, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of all nodes at regular intervals specified by user.
Definition:
ipv4-routing-helper.cc:43
ns3::Ipv4RoutingHelper::Create
virtual Ptr< Ipv4RoutingProtocol > Create(Ptr< Node > node) const =0
ns3::Ipv4RoutingHelper::PrintRoutingTableEvery
void PrintRoutingTableEvery(Time printInterval, Ptr< Node > node, Ptr< OutputStreamWrapper > stream) const
prints the routing tables of a node at regular intervals specified by user.
Definition:
ipv4-routing-helper.cc:59
src
internet
helper
ipv4-routing-helper.h
Generated on Sun Mar 16 2014 11:25:04 for ns-3 by
1.8.6