22 #ifndef NDN_MGMT_NFD_RIB_ENTRY_HPP 23 #define NDN_MGMT_NFD_RIB_ENTRY_HPP 26 #include "../../encoding/block.hpp" 27 #include "../../name.hpp" 28 #include "../../util/time.hpp" 99 return !!m_expirationPeriod;
105 return m_expirationPeriod ? *m_expirationPeriod : time::milliseconds::max();
114 template<encoding::Tag TAG>
131 mutable Block m_wire;
182 setName(
const Name& prefix);
184 const std::vector<Route>&
190 template<
typename InputIt>
194 m_routes.assign(first, last);
200 addRoute(
const Route& route);
205 template<encoding::Tag TAG>
217 std::vector<Route> m_routes;
219 mutable Block m_wire;
239 #endif // NDN_MGMT_NFD_RIB_ENTRY_HPP Copyright (c) 2011-2015 Regents of the University of California.
RibEntry
Copyright (c) 2014-2017, Regents of the University of California, Arizona Board of Regents...
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
defines getters for each route inheritance flag
Route & setFlags(uint64_t flags)
uint64_t getFaceId() const
boost::posix_time::time_duration milliseconds(long duration)
Route & setOrigin(RouteOrigin origin)
Error(const std::string &what)
Represents a TLV element of NDN packet format.
represents a route in a RibEntry
void wireDecode(const Block &block)
Route & setCost(uint64_t cost)
bool hasExpirationPeriod() const
const Name & getName() const
time::milliseconds getExpirationPeriod() const
Copyright (c) 2011-2015 Regents of the University of California.
const std::vector< Route > & getRoutes() const
uint64_t getFlags() const
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
const Block & wireEncode() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Represents an absolute name.
Route & unsetExpirationPeriod()
RibEntry & setRoutes(InputIt first, InputIt last)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
Route & setFaceId(uint64_t faceId)
RouteOrigin getOrigin() const
Error(const std::string &what)
Route & setExpirationPeriod(time::milliseconds expirationPeriod)
represents an item in NFD RIB dataset
represents an error in TLV encoding or decoding