22 #ifndef NDN_CXX_MGMT_NFD_RIB_ENTRY_HPP
23 #define NDN_CXX_MGMT_NFD_RIB_ENTRY_HPP
94 return !!m_expirationPeriod;
100 return m_expirationPeriod ? *m_expirationPeriod : time::milliseconds::max();
109 template<encoding::Tag TAG>
124 std::optional<time::milliseconds> m_expirationPeriod;
126 mutable Block m_wire;
175 const std::vector<Route>&
181 template<
typename InputIt>
185 m_routes.assign(first, last);
196 template<encoding::Tag TAG>
208 std::vector<Route> m_routes;
210 mutable Block m_wire;
Represents a TLV element of the NDN packet format.
void reset() noexcept
Reset the Block to a default-constructed state.
Represents an absolute name.
Represents an item in NFD RIB dataset.
const Name & getName() const
RibEntry & setRoutes(InputIt first, InputIt last)
RibEntry & addRoute(const Route &route)
void wireDecode(const Block &block)
const std::vector< Route > & getRoutes() const
const Block & wireEncode() const
RibEntry & setName(const Name &prefix)
Defines getters for each route inheritance flag.
Represents a route in a RibEntry.
Route & unsetExpirationPeriod()
Route & setFlags(uint64_t flags)
bool hasExpirationPeriod() const
RouteOrigin getOrigin() const
Route & setCost(uint64_t cost)
Route & setOrigin(RouteOrigin origin)
uint64_t getFaceId() const
Route & setFaceId(uint64_t faceId)
const Block & wireEncode() const
uint64_t getFlags() const
Route & setExpirationPeriod(time::milliseconds expirationPeriod)
time::milliseconds getExpirationPeriod() const
void wireDecode(const Block &block)
Represents an error in TLV encoding or decoding.
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
@ ROUTE_FLAG_CHILD_INHERIT
Contains classes and functions related to the NFD Management protocol.
constexpr uint64_t INVALID_FACE_ID
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
::boost::chrono::milliseconds milliseconds