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
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
q
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
n
p
r
s
t
u
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
pit-iterator.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
pit-iterator.hpp
"
27
#include "
core/asserts.hpp
"
28
29
namespace
nfd
{
30
namespace
pit {
31
32
NFD_ASSERT_FORWARD_ITERATOR
(Iterator);
33
34
Iterator::Iterator
(
const
NameTree::const_iterator
& ntIt,
size_t
iPitEntry)
35
: m_ntIt(ntIt)
36
, m_iPitEntry(iPitEntry)
37
{
38
}
39
40
Iterator
&
41
Iterator::operator++
()
42
{
43
BOOST_ASSERT(m_ntIt !=
NameTree::const_iterator
());
44
BOOST_ASSERT(m_iPitEntry < m_ntIt->getPitEntries().size());
45
46
if
(++m_iPitEntry >= m_ntIt->
getPitEntries
().size()) {
47
++m_ntIt;
48
m_iPitEntry = 0;
49
BOOST_ASSERT(m_ntIt ==
NameTree::const_iterator
() || m_ntIt->
hasPitEntries
());
50
}
51
52
return
*
this
;
53
}
54
55
Iterator
56
Iterator::operator++
(
int
)
57
{
58
Iterator
copy = *
this
;
59
this->
operator++
();
60
return
copy;
61
}
62
63
}
// namespace pit
64
}
// namespace nfd
pit-iterator.hpp
nfd::pit::Iterator::Iterator
Iterator(const NameTree::const_iterator &ntIt=NameTree::const_iterator(), size_t iPitEntry=0)
constructor
Definition:
pit-iterator.cpp:34
nfd::name_tree::Entry::getPitEntries
const std::vector< shared_ptr< pit::Entry > > & getPitEntries() const
Definition:
name-tree-entry.hpp:126
asserts.hpp
nfd::pit::Iterator
PIT iterator.
Definition:
pit-iterator.hpp:37
nfd::pit::NFD_ASSERT_FORWARD_ITERATOR
NFD_ASSERT_FORWARD_ITERATOR(Iterator)
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::name_tree::Iterator
NameTree iterator.
Definition:
name-tree-iterator.hpp:72
nfd::name_tree::Entry::hasPitEntries
bool hasPitEntries() const
Definition:
name-tree-entry.hpp:120
nfd::pit::Iterator::operator++
Iterator & operator++()
Definition:
pit-iterator.cpp:41
ndnSIM
NFD
daemon
table
pit-iterator.cpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14