src: Renaming class to spell out them (Adl, Nhl, Npl, Npt, Npte)
Refs: #1534
Change-Id: If4a205e8ad2419505cc796027a5c863471ef5439
diff --git a/src/route/nexthop-list.hpp b/src/route/nexthop-list.hpp
index a8ebe7b..2607218 100644
--- a/src/route/nexthop-list.hpp
+++ b/src/route/nexthop-list.hpp
@@ -1,9 +1,11 @@
-#ifndef NLSR_NHL_HPP
-#define NLSR_NHL_HPP
+#ifndef NLSR_NEXTHOP_LIST_HPP
+#define NLSR_NEXTHOP_LIST_HPP
-#include <ndn-cxx/face.hpp>
#include <list>
#include <iostream>
+#include <boost/cstdint.hpp>
+
+#include <ndn-cxx/face.hpp>
#include "nexthop.hpp"
#include "adjacent.hpp"
@@ -14,13 +16,13 @@
{
public:
NexthopList()
- : m_nexthopList()
{
}
~NexthopList()
{
}
+
void
addNextHop(NextHop& nh);
@@ -30,7 +32,7 @@
void
sort();
- int
+ size_t
getSize()
{
return m_nexthopList.size();
@@ -39,14 +41,11 @@
void
reset()
{
- if (m_nexthopList.size() > 0)
- {
- m_nexthopList.clear();
- }
+ m_nexthopList.clear();
}
std::list<NextHop>&
- getNextHopList()
+ getNextHops()
{
return m_nexthopList;
}
@@ -60,4 +59,4 @@
}//namespace nlsr
-#endif //NLSR_NLH_HPP
+#endif //NLSR_NEXTHOP_LIST_HPP