readvertised-route.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
27 #define NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
28 
29 #include "core/scheduler.hpp"
30 #include <ndn-cxx/security/signing-info.hpp>
31 
32 namespace nfd {
33 namespace rib {
34 
37 class ReadvertisedRoute : noncopyable
38 {
39 public:
40  explicit
41  ReadvertisedRoute(const Name& prefix);
42 
43 public:
44  Name prefix;
45  mutable ndn::security::SigningInfo signer;
46  mutable size_t nRibRoutes;
47  mutable time::milliseconds retryDelay;
49 };
50 
51 inline bool
53 {
54  return lhs.prefix < rhs.prefix;
55 }
56 
57 using ReadvertisedRouteContainer = std::set<ReadvertisedRoute>;
58 
59 } // namespace rib
60 } // namespace nfd
61 
62 #endif // NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
std::set< ReadvertisedRoute > ReadvertisedRouteContainer
ReadvertisedRoute(const Name &prefix)
size_t nRibRoutes
number of RIB routes that cause the readvertisement
state of a readvertised route
Name prefix
readvertised prefix
cancels an event automatically upon destruction
Definition: scheduler.hpp:56
scheduler::ScopedEventId retryEvt
retry or refresh event
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
time::milliseconds retryDelay
retry interval (not used for refresh)
ndn::security::SigningInfo signer
signer for commands
bool operator<(const ReadvertisedRoute &lhs, const ReadvertisedRoute &rhs)