22 #ifndef NDN_MANAGEMENT_NFD_RIB_ENTRY_HPP 23 #define NDN_MANAGEMENT_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_MANAGEMENT_NFD_RIB_ENTRY_HPP Copyright (c) 2011-2015 Regents of the University of California.
RouteList::const_iterator iterator
uint64_t getFaceId() const
uint64_t getOrigin() 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)
const Name & getName() const
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
const time::milliseconds & getExpirationPeriod() const
Copyright (c) 2011-2015 Regents of the University of California.
RibEntry
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
uint64_t getFlags() const
bool hasInfiniteExpirationPeriod() const
void wireDecode(const Block &wire)
const Block & wireEncode() const
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)
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