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 "../rib.hpp"
30 #include <ndn-cxx/security/signing-info.hpp>
31 
32 namespace nfd {
33 namespace rib {
34 
38 {
39 public:
42  ReadvertisedRoute(const ndn::Name& prefix, const ndn::security::SigningInfo& signer,
43  const std::vector<RibRouteRef>& routes);
44 
47  const Name&
48  getPrefix() const
49  {
50  return m_prefix;
51  }
52 
55  const ndn::security::SigningInfo&
56  getSigner() const
57  {
58  return m_signer;
59  }
60 
63  const std::vector<RibRouteRef>&
64  getRibRoutes() const
65  {
66  return m_ribRoutes;
67  }
68 
69 
70 private:
71  Name m_prefix;
72  ndn::security::SigningInfo m_signer;
73  std::vector<RibRouteRef> m_ribRoutes;
74 };
75 
76 bool
77 operator<(const ReadvertisedRoute& lhs, const ReadvertisedRoute& rhs);
78 
79 } // namespace rib
80 } // namespace nfd
81 
82 #endif // NFD_RIB_READVERTISE_READVERTISED_ROUTE_HPP
const Name & getPrefix() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
const std::vector< RibRouteRef > & getRibRoutes() const
const ndn::security::SigningInfo & getSigner() const
bool operator<(const ReadvertisedRoute &lhs, const ReadvertisedRoute &rhs)
ReadvertisedRoute(const ndn::Name &prefix, const ndn::security::SigningInfo &signer, const std::vector< RibRouteRef > &routes)
standard constructor