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
Classes
Files
File List
File Members
rib-update-batch.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#include "
rib-update-batch.hpp
"
27
28
namespace
nfd
{
29
namespace
rib {
30
31
RibUpdateBatch::RibUpdateBatch
(uint64_t faceId)
32
: m_faceId(faceId)
33
{
34
}
35
36
void
37
RibUpdateBatch::add
(
const
RibUpdate
& update)
38
{
39
BOOST_ASSERT(m_faceId == update.
getRoute
().
faceId
);
40
41
m_updates.push_back(update);
42
}
43
44
RibUpdateBatch::const_iterator
45
RibUpdateBatch::begin
()
const
46
{
47
return
m_updates.begin();
48
}
49
50
RibUpdateBatch::const_iterator
51
RibUpdateBatch::end
()
const
52
{
53
return
m_updates.end();
54
}
55
56
size_t
57
RibUpdateBatch::size
()
const
58
{
59
return
m_updates.size();
60
}
61
62
}
// namespace rib
63
}
// namespace nfd
rib-update-batch.hpp
nfd::rib::RibUpdate::getRoute
const Route & getRoute() const
Definition:
rib-update.hpp:114
nfd::rib::RibUpdateBatch::add
void add(const RibUpdate &update)
Definition:
rib-update-batch.cpp:37
nfd::rib::Route::faceId
uint64_t faceId
Definition:
route.hpp:63
nfd::rib::RibUpdate
RibUpdate.
Definition:
rib-update.hpp:40
nfd::rib::RibUpdateBatch::begin
const_iterator begin() const
Definition:
rib-update-batch.cpp:45
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::RibUpdateBatch::end
const_iterator end() const
Definition:
rib-update-batch.cpp:51
nfd::rib::RibUpdateBatch::RibUpdateBatch
RibUpdateBatch(uint64_t faceId)
Definition:
rib-update-batch.cpp:31
nfd::rib::RibUpdateBatch::const_iterator
RibUpdateList::const_iterator const_iterator
Definition:
rib-update-batch.hpp:42
nfd::rib::RibUpdateBatch::size
size_t size() const
Definition:
rib-update-batch.cpp:57
ndnSIM
NFD
rib
rib-update-batch.cpp
Generated on Thu Nov 2 2017 03:30:29 for ndnSIM by
1.8.11