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