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
uint64_t faceId
Definition: route.hpp:81
void add(const RibUpdate &update)
RibUpdateList::const_iterator const_iterator
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
const_iterator begin() const
const_iterator end() const
const Route & getRoute() const
Definition: rib-update.hpp:114
RibUpdateBatch(uint64_t faceId)