A Discrete-Event Network Simulator
lorawan @ (+)
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Symbols
:
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
e
l
v
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
▼
ns-3
►
ns-3 Documentation
►
All Environment Variables
Todo List
Deprecated List
Bug List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
doc
►
examples
▼
src
►
antenna
►
aodv
►
applications
►
bridge
►
brite
►
buildings
►
click
►
config-store
►
core
►
csma
►
csma-layout
►
dsdv
►
dsr
►
energy
►
fd-net-device
►
flow-monitor
▼
internet
►
examples
▼
helper
►
internet-stack-helper.cc
internet-stack-helper.h
internet-trace-helper.cc
internet-trace-helper.h
►
ipv4-address-helper.cc
ipv4-address-helper.h
ipv4-global-routing-helper.cc
ipv4-global-routing-helper.h
ipv4-interface-container.cc
ipv4-interface-container.h
ipv4-list-routing-helper.cc
ipv4-list-routing-helper.h
ipv4-routing-helper.cc
ipv4-routing-helper.h
ipv4-static-routing-helper.cc
ipv4-static-routing-helper.h
ipv6-address-helper.cc
ipv6-address-helper.h
ipv6-interface-container.cc
ipv6-interface-container.h
ipv6-list-routing-helper.cc
ipv6-list-routing-helper.h
ipv6-routing-helper.cc
ipv6-routing-helper.h
ipv6-static-routing-helper.cc
ipv6-static-routing-helper.h
neighbor-cache-helper.cc
neighbor-cache-helper.h
rip-helper.cc
rip-helper.h
ripng-helper.cc
ripng-helper.h
►
model
►
test
►
internet-apps
►
lorawan
►
lr-wpan
►
lte
►
mesh
►
mobility
►
mpi
►
netanim
►
network
►
nix-vector-routing
►
olsr
►
openflow
►
point-to-point
►
point-to-point-layout
►
propagation
►
sixlowpan
►
spectrum
►
stats
►
tap-bridge
►
test
►
topology-read
►
traffic-control
►
uan
►
virtual-net-device
►
visualizer
►
wifi
►
wimax
►
utils
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
ipv6-list-routing-helper.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7
*/
8
9
#include "
ipv6-list-routing-helper.h
"
10
11
#include "ns3/ipv6-list-routing.h"
12
#include "ns3/node.h"
13
14
namespace
ns3
15
{
16
17
Ipv6ListRoutingHelper::Ipv6ListRoutingHelper
()
18
{
19
}
17
Ipv6ListRoutingHelper::Ipv6ListRoutingHelper
() {
…
}
20
21
Ipv6ListRoutingHelper::~Ipv6ListRoutingHelper
()
22
{
23
for
(
auto
i =
m_list
.begin(); i !=
m_list
.end(); ++i)
24
{
25
delete
i->first;
26
}
27
}
21
Ipv6ListRoutingHelper::~Ipv6ListRoutingHelper
() {
…
}
28
29
Ipv6ListRoutingHelper::Ipv6ListRoutingHelper
(
const
Ipv6ListRoutingHelper
& o)
30
{
31
for
(
auto
i = o.
m_list
.begin(); i != o.
m_list
.end(); ++i)
32
{
33
m_list
.emplace_back(
const_cast<
const
Ipv6RoutingHelper
*
>
(i->first->Copy()), i->second);
34
}
35
}
29
Ipv6ListRoutingHelper::Ipv6ListRoutingHelper
(
const
Ipv6ListRoutingHelper
& o) {
…
}
36
37
Ipv6ListRoutingHelper
*
38
Ipv6ListRoutingHelper::Copy
()
const
39
{
40
return
new
Ipv6ListRoutingHelper
(*
this
);
41
}
38
Ipv6ListRoutingHelper::Copy
()
const
{
…
}
42
43
void
44
Ipv6ListRoutingHelper::Add
(
const
Ipv6RoutingHelper
& routing, int16_t priority)
45
{
46
m_list
.emplace_back(
const_cast<
const
Ipv6RoutingHelper
*
>
(routing.
Copy
()), priority);
47
}
44
Ipv6ListRoutingHelper::Add
(
const
Ipv6RoutingHelper
& routing, int16_t priority) {
…
}
48
49
Ptr<Ipv6RoutingProtocol>
50
Ipv6ListRoutingHelper::Create
(
Ptr<Node>
node)
const
51
{
52
Ptr<Ipv6ListRouting>
list =
CreateObject<Ipv6ListRouting>
();
53
for
(
auto
i =
m_list
.begin(); i !=
m_list
.end(); ++i)
54
{
55
Ptr<Ipv6RoutingProtocol>
prot = i->first->Create(node);
56
list->AddRoutingProtocol(prot, i->second);
57
}
58
return
list
;
59
}
50
Ipv6ListRoutingHelper::Create
(
Ptr<Node>
node)
const
{
…
}
60
61
}
// namespace ns3
ns3::Ipv6ListRoutingHelper
Helper class that adds ns3::Ipv6ListRouting objects.
Definition
ipv6-list-routing-helper.h:28
ns3::Ipv6ListRoutingHelper::m_list
std::list< std::pair< const Ipv6RoutingHelper *, int16_t > > m_list
Container for pairs of Ipv6RoutingHelper pointer / priority.
Definition
ipv6-list-routing-helper.h:82
ns3::Ipv6ListRoutingHelper::Copy
Ipv6ListRoutingHelper * Copy() const override
Definition
ipv6-list-routing-helper.cc:38
ns3::Ipv6ListRoutingHelper::Add
void Add(const Ipv6RoutingHelper &routing, int16_t priority)
Definition
ipv6-list-routing-helper.cc:44
ns3::Ipv6ListRoutingHelper::Ipv6ListRoutingHelper
Ipv6ListRoutingHelper()
Construct an Ipv6 Ipv6ListRoutingHelper which is used to make life easier for people wanting to confi...
Definition
ipv6-list-routing-helper.cc:17
ns3::Ipv6ListRoutingHelper::Create
Ptr< Ipv6RoutingProtocol > Create(Ptr< Node > node) const override
Definition
ipv6-list-routing-helper.cc:50
ns3::Ipv6ListRoutingHelper::~Ipv6ListRoutingHelper
~Ipv6ListRoutingHelper() override
Destroy an Ipv6 Ipv6ListRoutingHelper.
Definition
ipv6-list-routing-helper.cc:21
ns3::Ipv6RoutingHelper
A factory to create ns3::Ipv6RoutingProtocol objects.
Definition
ipv6-routing-helper.h:35
ns3::Ipv6RoutingHelper::Copy
virtual Ipv6RoutingHelper * Copy() const =0
virtual constructor
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::CreateObject
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
Definition
object.h:619
ipv6-list-routing-helper.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
list
#define list
Definition
openflow-interface.h:35
src
internet
helper
ipv6-list-routing-helper.cc
Generated on Mon Jan 27 2025 16:35:47 for ns-3 by
1.11.0