NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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
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
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class 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
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
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
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
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
f
i
l
m
n
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
route.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
route.hpp
"
27
28
namespace
nfd
{
29
namespace
rib {
30
31
bool
32
Route::operator==
(
const
Route
& other)
const
33
{
34
return
(this->
faceId
== other.
faceId
&&
35
this->origin == other.
origin
&&
36
this->flags == other.
flags
&&
37
this->cost == other.
cost
&&
38
this->expires == other.
expires
);
39
}
40
41
std::ostream&
42
operator<<
(std::ostream& os,
const
Route
& route)
43
{
44
os <<
"Route("
45
<<
"faceid: "
<< route.
faceId
46
<<
", origin: "
<< route.
origin
47
<<
", cost: "
<< route.
cost
48
<<
", flags: "
<< route.
flags
;
49
if
(route.
expires
!= time::steady_clock::TimePoint::max()) {
50
os <<
", expires in: "
<< (route.
expires
-
time::steady_clock::now
());
51
}
52
else
{
53
os <<
", never expires"
;
54
}
55
os <<
")"
;
56
57
return
os;
58
}
59
60
}
// namespace rib
61
}
// namespace nfd
nfd::rib::Route::operator==
bool operator==(const Route &other) const
Definition:
route.cpp:32
nfd::rib::Route::expires
time::steady_clock::TimePoint expires
Definition:
route.hpp:83
ndn::time::steady_clock::now
static time_point now() noexcept
Definition:
time.cpp:79
nfd::rib::operator<<
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
Definition:
fib-update.hpp:74
nfd::rib::Route::cost
uint64_t cost
Definition:
route.hpp:82
nfd::rib::Route::faceId
uint64_t faceId
Definition:
route.hpp:79
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::Route::origin
uint64_t origin
Definition:
route.hpp:80
nfd::rib::Route
represents a route for a name prefix
Definition:
route.hpp:37
route.hpp
nfd::rib::Route::flags
uint64_t flags
Definition:
route.hpp:81
ndnSIM
NFD
rib
route.cpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13