blob: 1361d52a370cb7f77add5d0893e4ccf99ab4bf87 [file] [log] [blame]
#ifndef NLSR_NEXTHOP_HPP
#define NLSR_NEXTHOP_HPP
#include<iostream>
namespace nlsr
{
using namespace std;
class NextHop
{
public:
NextHop()
: connectingFace(0)
, routeCost(0)
{
}
NextHop(int cf, double rc)
{
connectingFace=cf;
routeCost=rc;
}
int getConnectingFace()
{
return connectingFace;
}
void setConnectingFace(int cf)
{
connectingFace=cf;
}
double getRouteCost()
{
return routeCost;
}
void setRouteCost(double rc)
{
routeCost=rc;
}
private:
int connectingFace;
double routeCost;
};
ostream&
operator<<(ostream& os, NextHop& nh);
}//namespace nlsr
#endif