NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
k
l
n
o
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
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
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
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
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
_
a
c
e
i
r
s
t
v
+
Enumerator
a
c
d
e
f
i
k
l
m
n
p
r
s
u
v
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
f
g
i
k
l
m
n
p
r
s
t
Typedefs
+
Macros
a
d
e
f
i
l
m
n
o
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Bug List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
rib-update.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_RIB_RIB_UPDATE_HPP
27
#define NFD_RIB_RIB_UPDATE_HPP
28
29
#include "
core/common.hpp
"
30
#include "
route.hpp
"
31
32
namespace
nfd
{
33
namespace
rib {
34
40
class
RibUpdate
41
{
42
public
:
43
enum
Action
{
44
REGISTER
= 0,
45
UNREGISTER
= 1,
46
51
REMOVE_FACE
= 2
52
};
53
54
RibUpdate
();
55
56
RibUpdate
&
57
setAction
(
Action
action);
58
59
Action
60
getAction
()
const
;
61
62
RibUpdate
&
63
setName
(
const
Name
&
name
);
64
65
const
Name
&
66
getName
()
const
;
67
68
RibUpdate
&
69
setRoute
(
const
Route
& route);
70
71
const
Route
&
72
getRoute
()
const
;
73
74
private
:
75
Action
m_action;
76
Name
m_name;
77
Route
m_route;
78
};
79
80
inline
RibUpdate&
81
RibUpdate::setAction
(
Action
action)
82
{
83
m_action = action;
84
return
*
this
;
85
}
86
87
inline
RibUpdate::Action
88
RibUpdate::getAction
()
const
89
{
90
return
m_action;
91
}
92
93
inline
RibUpdate
&
94
RibUpdate::setName
(
const
Name
&
name
)
95
{
96
m_name =
name
;
97
return
*
this
;
98
}
99
100
inline
const
Name
&
101
RibUpdate::getName
()
const
102
{
103
return
m_name;
104
}
105
106
inline
RibUpdate
&
107
RibUpdate::setRoute
(
const
Route
& route)
108
{
109
m_route = route;
110
return
*
this
;
111
}
112
113
inline
const
Route
&
114
RibUpdate::getRoute
()
const
115
{
116
return
m_route;
117
}
118
119
std::ostream&
120
operator<<
(std::ostream& os,
const
RibUpdate::Action
action);
121
122
std::ostream&
123
operator<<
(std::ostream& os,
const
RibUpdate
& update);
124
125
}
// namespace rib
126
}
// namespace nfd
127
128
#endif // NFD_RIB_RIB_UPDATE_HPP
nfd::rib::RibUpdate::setRoute
RibUpdate & setRoute(const Route &route)
Definition:
rib-update.hpp:107
nfd::rib::RibUpdate::getRoute
const Route & getRoute() const
Definition:
rib-update.hpp:114
nfd::rib::operator<<
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Definition:
fib-update.hpp:74
nfd::rib::RibUpdate
RibUpdate.
Definition:
rib-update.hpp:40
common.hpp
nfd::rib::RibUpdate::getName
const Name & getName() const
Definition:
rib-update.hpp:101
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::RibUpdate::setAction
RibUpdate & setAction(Action action)
Definition:
rib-update.hpp:81
nfd::rib::Route
represents a route for a name prefix
Definition:
route.hpp:43
nfd::rib::RibUpdate::UNREGISTER
Definition:
rib-update.hpp:45
nfd::rib::RibUpdate::Action
Action
Definition:
rib-update.hpp:43
ndn::Name
Represents an absolute name.
Definition:
name.hpp:43
nfd::rib::RibUpdate::REGISTER
Definition:
rib-update.hpp:44
route.hpp
nfd::rib::RibUpdate::setName
RibUpdate & setName(const Name &name)
Definition:
rib-update.hpp:94
nfd::rib::RibUpdate::REMOVE_FACE
An update triggered by a face destruction notification.
Definition:
rib-update.hpp:51
nfd::rib::RibUpdate::RibUpdate
RibUpdate()
Definition:
rib-update.cpp:31
ndn::name
Definition:
name-component-types.hpp:33
nfd::rib::RibUpdate::getAction
Action getAction() const
Definition:
rib-update.hpp:88
ndnSIM
NFD
rib
rib-update.hpp
Generated on Sun Feb 24 2019 22:16:07 for ndnSIM by
1.8.15