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