akmhoque | dfa4a5b | 2014-02-03 20:12:29 -0600 | [diff] [blame^] | 1 | #ifndef NLSR_NHL_HPP |
| 2 | #define NLSR_NHL_HPP |
| 3 | |
| 4 | #include <ndn-cpp-dev/face.hpp> |
| 5 | #include "nlsr_adjacent.hpp" |
| 6 | #include <list> |
| 7 | #include <iostream> |
| 8 | |
| 9 | #include "nlsr_nexthop.hpp" |
| 10 | |
| 11 | using namespace std; |
| 12 | |
| 13 | class Nhl |
| 14 | { |
| 15 | public: |
| 16 | Nhl() |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | ~Nhl() |
| 21 | { |
| 22 | } |
| 23 | void addNextHop(NextHop &nh); |
| 24 | std::list< NextHop >& getNextHopList() |
| 25 | { |
| 26 | return nexthopList; |
| 27 | } |
| 28 | |
| 29 | private: |
| 30 | std::list< NextHop > nexthopList; |
| 31 | }; |
| 32 | |
| 33 | ostream& |
| 34 | operator<<(ostream& os, Nhl& nhl); |
| 35 | |
| 36 | #endif |