src: Remove Scheduler instance from Nlsr class
refs: #1981
Change-Id: Iecbe9f975c2740ce04df8593ccde03486d4b7be8
diff --git a/src/route/routing-table.hpp b/src/route/routing-table.hpp
index 3a3c96a..6dd3ef2 100644
--- a/src/route/routing-table.hpp
+++ b/src/route/routing-table.hpp
@@ -27,6 +27,7 @@
#include <utility>
#include <string>
#include <boost/cstdint.hpp>
+#include <ndn-cxx/util/scheduler.hpp>
#include "routing-table-entry.hpp"
@@ -38,8 +39,9 @@
class RoutingTable
{
public:
- RoutingTable()
- : m_NO_NEXT_HOP(-12345)
+ RoutingTable(ndn::Scheduler& scheduler)
+ : m_scheduler(scheduler)
+ , m_NO_NEXT_HOP(-12345)
{
}
void
@@ -82,6 +84,9 @@
void
writeLog(int hyperbolicState);
+private:
+ ndn::Scheduler& m_scheduler;
+
const int m_NO_NEXT_HOP;
std::list<RoutingTableEntry> m_rTable;