NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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
const Route & getRoute() const
Definition: rib-update.hpp:114
void add(const RibUpdate &update)
uint64_t faceId
Definition: route.hpp:63
const_iterator begin() const
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
const_iterator end() const
RibUpdateBatch(uint64_t faceId)
RibUpdateList::const_iterator const_iterator