blob: 17393c66ef0c1efe27d7f7b7ee557343c6667120 [file] [log] [blame]
#ifndef NLSR_NEXTHOP_HPP
#define NLSR_NEXTHOP_HPP
#include<iostream>
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);
#endif