NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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
39
class
RibUpdateBatch
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
68
RibUpdateBatch::getFaceId
()
const
69
{
70
return
m_faceId;
71
}
72
73
}
// namespace rib
74
}
// namespace nfd
75
76
#endif // NFD_RIB_RIB_UPDATE_BATCH_HPP
nfd::rib::RibUpdateBatch::add
void add(const RibUpdate &update)
Definition:
rib-update-batch.cpp:37
nfd::rib::RibUpdateBatch
represents a collection of RibUpdates to be applied to a single FaceId
Definition:
rib-update-batch.hpp:39
nfd::rib::RibUpdate
RibUpdate.
Definition:
rib-update.hpp:40
common.hpp
nfd::rib::RibUpdateList
std::list< RibUpdate > RibUpdateList
Definition:
rib-update-batch.hpp:35
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::rib::RibUpdateBatch::end
const_iterator end() const
Definition:
rib-update-batch.cpp:51
rib-update.hpp
nfd::rib::RibUpdateBatch::RibUpdateBatch
RibUpdateBatch(uint64_t faceId)
Definition:
rib-update-batch.cpp:31
nfd::rib::RibUpdateBatch::const_iterator
RibUpdateList::const_iterator const_iterator
Definition:
rib-update-batch.hpp:42
nfd::rib::RibUpdateBatch::begin
const_iterator begin() const
Definition:
rib-update-batch.cpp:45
nfd::rib::RibUpdateBatch::size
size_t size() const
Definition:
rib-update-batch.cpp:57
nfd::rib::RibUpdateBatch::getFaceId
uint64_t getFaceId() const
Definition:
rib-update-batch.hpp:68
ndnSIM
NFD
rib
rib-update-batch.hpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14