blob: 26072180e73045e78ebf4876339b7e44b366b3a8 [file] [log] [blame]
#ifndef NLSR_NEXTHOP_LIST_HPP
#define NLSR_NEXTHOP_LIST_HPP
#include <list>
#include <iostream>
#include <boost/cstdint.hpp>
#include <ndn-cxx/face.hpp>
#include "nexthop.hpp"
#include "adjacent.hpp"
namespace nlsr {
class NexthopList
{
public:
NexthopList()
{
}
~NexthopList()
{
}
void
addNextHop(NextHop& nh);
void
removeNextHop(NextHop& nh);
void
sort();
size_t
getSize()
{
return m_nexthopList.size();
}
void
reset()
{
m_nexthopList.clear();
}
std::list<NextHop>&
getNextHops()
{
return m_nexthopList;
}
private:
std::list<NextHop> m_nexthopList;
};
std::ostream&
operator<<(std::ostream& os, NexthopList& nhl);
}//namespace nlsr
#endif //NLSR_NEXTHOP_LIST_HPP