22 #ifndef NDN_MGMT_NFD_RIB_ENTRY_HPP 23 #define NDN_MGMT_NFD_RIB_ENTRY_HPP 26 #include "../../name.hpp" 27 #include "../../util/time.hpp" 132 const time::milliseconds&
135 return m_expirationPeriod;
141 m_expirationPeriod = expirationPeriod;
152 return m_hasInfiniteExpirationPeriod;
155 template<encoding::Tag TAG>
170 time::milliseconds m_expirationPeriod;
171 bool m_hasInfiniteExpirationPeriod;
173 mutable Block m_wire;
225 const std::list<Route>&
234 m_routes.push_back(route);
246 template<encoding::Tag TAG>
266 mutable Block m_wire;
272 return m_routes.begin();
278 return m_routes.end();
287 #endif // NDN_MGMT_NFD_RIB_ENTRY_HPP Copyright (c) 2011-2015 Regents of the University of California.
RibEntry
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
RouteList::const_iterator iterator
bool hasInfiniteExpirationPeriod() const
const Name & getName() const
Error(const std::string &what)
RibEntry & setName(const Name &prefix)
Class representing a wire element of NDN-TLV packet format.
Data abstraction for Route.
Route & setFaceId(uint64_t faceId)
Route & setExpirationPeriod(const time::milliseconds &expirationPeriod)
implements getters to each RIB flag
Route & setFlags(uint64_t flags)
set route inheritance flags
static const time::milliseconds INFINITE_EXPIRATION_PERIOD
std::list< Route > RouteList
Copyright (c) 2011-2015 Regents of the University of California.
uint64_t getFaceId() const
void wireDecode(const Block &wire)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Name abstraction to represent an absolute name.
const std::list< Route > & getRoutes() const
RibEntry & addRoute(const Route &route)
uint64_t getOrigin() const
const Block & wireEncode() const
const time::milliseconds & getExpirationPeriod() const
uint64_t getFlags() const
Route & setCost(uint64_t cost)
Error(const std::string &what)
Route & setOrigin(uint64_t origin)
set Origin
Data abstraction for RIB entry.
represents an error in TLV encoding or decoding