rib-update-batch.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_RIB_RIB_UPDATE_BATCH_HPP
27 #define NFD_RIB_RIB_UPDATE_BATCH_HPP
28 
29 #include "core/common.hpp"
30 #include "rib-update.hpp"
31 
32 namespace nfd {
33 namespace rib {
34 
35 typedef std::list<RibUpdate> RibUpdateList;
36 
40 {
41 public:
42  typedef RibUpdateList::const_iterator const_iterator;
43 
44  explicit
45  RibUpdateBatch(uint64_t faceId);
46 
47  uint64_t
48  getFaceId() const;
49 
50  void
51  add(const RibUpdate& update);
52 
53  const_iterator
54  begin() const;
55 
56  const_iterator
57  end() const;
58 
59  size_t
60  size() const;
61 
62 private:
63  uint64_t m_faceId;
64  RibUpdateList m_updates;
65 };
66 
67 inline uint64_t
69 {
70  return m_faceId;
71 }
72 
73 } // namespace rib
74 } // namespace nfd
75 
76 #endif // NFD_RIB_RIB_UPDATE_BATCH_HPP
const_iterator end() const
represents a collection of RibUpdates to be applied to a single FaceId
void add(const RibUpdate &update)
std::list< RibUpdate > RibUpdateList
RibUpdateList::const_iterator const_iterator
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
uint64_t getFaceId() const
const_iterator begin() const
RibUpdateBatch(uint64_t faceId)