NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
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
void add(const RibUpdate &update)
represents a collection of RibUpdates to be applied to a single FaceId
uint64_t getFaceId() const
std::list< RibUpdate > RibUpdateList
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