build: == Dependency change == NLSR now depends on ndn-cxx library
Refs: #1535
Change-Id: I4c7c0c3dcfcac6ee91648a46c07e426adbb5bd20
diff --git a/src/route/nexthop-list.hpp b/src/route/nexthop-list.hpp
new file mode 100644
index 0000000..a8ebe7b
--- /dev/null
+++ b/src/route/nexthop-list.hpp
@@ -0,0 +1,63 @@
+#ifndef NLSR_NHL_HPP
+#define NLSR_NHL_HPP
+
+#include <ndn-cxx/face.hpp>
+#include <list>
+#include <iostream>
+
+#include "nexthop.hpp"
+#include "adjacent.hpp"
+
+namespace nlsr {
+
+class NexthopList
+{
+public:
+ NexthopList()
+ : m_nexthopList()
+ {
+ }
+
+ ~NexthopList()
+ {
+ }
+ void
+ addNextHop(NextHop& nh);
+
+ void
+ removeNextHop(NextHop& nh);
+
+ void
+ sort();
+
+ int
+ getSize()
+ {
+ return m_nexthopList.size();
+ }
+
+ void
+ reset()
+ {
+ if (m_nexthopList.size() > 0)
+ {
+ m_nexthopList.clear();
+ }
+ }
+
+ std::list<NextHop>&
+ getNextHopList()
+ {
+ return m_nexthopList;
+ }
+
+private:
+ std::list<NextHop> m_nexthopList;
+};
+
+std::ostream&
+operator<<(std::ostream& os, NexthopList& nhl);
+
+}//namespace nlsr
+
+#endif //NLSR_NLH_HPP