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
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
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerations
+
Enumerator
a
c
d
e
i
k
l
m
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
c
d
e
f
g
h
i
k
l
m
n
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
d
e
f
i
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
delegation.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#include "
delegation.hpp
"
23
24
namespace
ndn
{
25
26
BOOST_CONCEPT_ASSERT((boost::EqualityComparable<Delegation>));
27
28
bool
29
operator==
(
const
Delegation
& lhs,
const
Delegation
& rhs)
30
{
31
return
lhs.
preference
== rhs.
preference
&&
32
lhs.
name
== rhs.
name
;
33
}
34
35
bool
36
operator<
(
const
Delegation
& lhs,
const
Delegation
& rhs)
37
{
38
return
std::tie(lhs.
preference
, lhs.
name
) <
39
std::tie(rhs.
preference
, rhs.
name
);
40
}
41
42
bool
43
operator<=
(
const
Delegation
& lhs,
const
Delegation
& rhs)
44
{
45
return
std::tie(lhs.
preference
, lhs.
name
) <=
46
std::tie(rhs.
preference
, rhs.
name
);
47
}
48
49
std::ostream&
50
operator<<
(std::ostream& os,
const
Delegation
& del)
51
{
52
return
os << del.
name
<<
'('
<< del.
preference
<<
')'
;
53
}
54
55
}
// namespace ndn
ndn::Delegation::name
Name name
Definition:
delegation.hpp:35
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::Delegation::preference
uint64_t preference
Definition:
delegation.hpp:34
ndn::operator<<
std::ostream & operator<<(std::ostream &os, const Data &data)
Definition:
data.cpp:337
ndn::operator<=
bool operator<=(const Delegation &lhs, const Delegation &rhs)
Definition:
delegation.cpp:43
ndn::Delegation
represents a delegation
Definition:
delegation.hpp:32
delegation.hpp
ndn::operator==
bool operator==(const Data &lhs, const Data &rhs)
Definition:
data.cpp:328
ndn::operator<
bool operator<(const Delegation &lhs, const Delegation &rhs)
Definition:
delegation.cpp:36
ndnSIM
ndn-cxx
src
delegation.cpp
Generated on Tue Aug 7 2018 16:19:16 for ndnSIM by
1.8.14