NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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 
32  : m_faceId(faceId)
33 {
34 }
35 
36 void
38 {
39  BOOST_ASSERT(m_faceId == update.getRoute().faceId);
40 
41  m_updates.push_back(update);
42 }
43 
46 {
47  return m_updates.begin();
48 }
49 
52 {
53  return m_updates.end();
54 }
55 
56 size_t
58 {
59  return m_updates.size();
60 }
61 
62 } // namespace rib
63 } // namespace nfd
nfd::rib::RibUpdateBatch::end
const_iterator end() const
Definition: rib-update-batch.cpp:51
nfd::rib::RibUpdateBatch::begin
const_iterator begin() const
Definition: rib-update-batch.cpp:45
nfd::rib::RibUpdateBatch::const_iterator
RibUpdateList::const_iterator const_iterator
Definition: rib-update-batch.hpp:43
nfd::rib::RibUpdateBatch::RibUpdateBatch
RibUpdateBatch(uint64_t faceId)
Definition: rib-update-batch.cpp:31
nfd::rib::RibUpdate
RibUpdate.
Definition: rib-update.hpp:41
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
nfd::rib::Route::faceId
uint64_t faceId
Definition: route.hpp:81
nfd::rib::RibUpdateBatch::size
size_t size() const
Definition: rib-update-batch.cpp:57
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
rib-update-batch.hpp