26 #ifndef NFD_RIB_ROUTE_HPP 27 #define NFD_RIB_ROUTE_HPP 30 #include <ndn-cxx/encoding/nfd-constants.hpp> 31 #include <ndn-cxx/mgmt/nfd/route-flags-traits.hpp> 32 #include <type_traits> 39 class Route :
public ndn::nfd::RouteFlagsTraits<Route>
47 m_expirationEvent = eid;
50 const scheduler::EventId&
53 return m_expirationEvent;
56 std::underlying_type<ndn::nfd::RouteFlags>::type
66 std::underlying_type<ndn::nfd::RouteFlags>::type
flags;
67 ndn::optional<time::steady_clock::TimePoint>
expires;
70 scheduler::EventId m_expirationEvent;
91 return (route.
faceId == faceId);
100 #endif // NFD_RIB_ROUTE_HPP
bool operator==(const Route &lhs, const Route &rhs)
std::ostream & operator<<(std::ostream &os, const FibUpdate &update)
bool compareFaceIdAndOrigin(const Route &lhs, const Route &rhs)
bool operator!=(const Route &lhs, const Route &rhs)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
ndn::nfd::RouteOrigin origin
void setExpirationEvent(const scheduler::EventId eid)
represents a route for a name prefix
const scheduler::EventId & getExpirationEvent() const
ndn::optional< time::steady_clock::TimePoint > expires
bool compareFaceId(const Route &route, const uint64_t faceId)
std::underlying_type< ndn::nfd::RouteFlags >::type getFlags() const
std::underlying_type< ndn::nfd::RouteFlags >::type flags