blob: b5d34f65d2c4ac07c8a049d3d48fe3638dee7cde [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef NLSR_NEXTHOP_HPP
2#define NLSR_NEXTHOP_HPP
3
4#include<iostream>
5
akmhoqueb1710aa2014-02-19 17:13:36 -06006namespace nlsr {
7
akmhoque298385a2014-02-13 14:13:09 -06008using namespace std;
9
10class NextHop
11{
12public:
13 NextHop()
14 : connectingFace(0)
15 , routeCost(0)
16 {
17 }
18
19 NextHop(int cf, double rc)
20 {
21 connectingFace=cf;
22 routeCost=rc;
23 }
24
25 int getConnectingFace()
26 {
27 return connectingFace;
28 }
29
30 void setConnectingFace(int cf)
31 {
32 connectingFace=cf;
33 }
34
35 double getRouteCost()
36 {
37 return routeCost;
38 }
39
40 void setRouteCost(double rc)
41 {
42 routeCost=rc;
43 }
44private:
45 int connectingFace;
46 double routeCost;
47};
48
49
50ostream&
51operator<<(ostream& os, NextHop& nh);
52
akmhoqueb1710aa2014-02-19 17:13:36 -060053}//namespace nlsr
54
akmhoque298385a2014-02-13 14:13:09 -060055#endif