blob: b5d34f65d2c4ac07c8a049d3d48fe3638dee7cde [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