22 #ifndef NDN_CXX_MGMT_NFD_RIB_ENTRY_HPP 23 #define NDN_CXX_MGMT_NFD_RIB_ENTRY_HPP 95 return !!m_expirationPeriod;
101 return m_expirationPeriod ? *m_expirationPeriod : time::milliseconds::max();
110 template<encoding::Tag TAG>
125 optional<time::milliseconds> m_expirationPeriod;
127 mutable Block m_wire;
174 setName(
const Name& prefix);
176 const std::vector<Route>&
182 template<
typename InputIt>
186 m_routes.assign(first, last);
192 addRoute(
const Route& route);
197 template<encoding::Tag TAG>
209 std::vector<Route> m_routes;
211 mutable Block m_wire;
231 #endif // NDN_CXX_MGMT_NFD_RIB_ENTRY_HPP Copyright (c) 2011-2015 Regents of the University of California.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
defines getters for each route inheritance flag
Route & setFlags(uint64_t flags)
const Name & getName() const
Route & setOrigin(RouteOrigin origin)
time::milliseconds getExpirationPeriod() const
Represents a TLV element of the NDN packet format.
represents a route in a RibEntry
void wireDecode(const Block &block)
Route & setCost(uint64_t cost)
Copyright (c) 2011-2015 Regents of the University of California.
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
uint64_t getFaceId() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
Represents an absolute name.
Route & unsetExpirationPeriod()
bool hasExpirationPeriod() const
const Block & wireEncode() const
RibEntry & setRoutes(InputIt first, InputIt last)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
uint64_t getFlags() const
Route & setFaceId(uint64_t faceId)
const std::vector< Route > & getRoutes() const
Route & setExpirationPeriod(time::milliseconds expirationPeriod)
represents an item in NFD RIB dataset
Error(const char *expectedType, uint32_t actualType)
RouteOrigin getOrigin() const
represents an error in TLV encoding or decoding
boost::chrono::milliseconds milliseconds