blob: 05beda4692967c3d98ffa9c757e80f9e714a6082 [file] [log] [blame]
#ifndef NLSR_RT_HPP
#define NLSR_RT_HPP
#include<iostream>
#include<string>
#include "nlsr_rte.hpp"
class nlsr;
using namespace std;
class RoutingTable
{
public:
RoutingTable()
{
}
void calculate(nlsr& pnlsr);
private:
void calculateLsRoutingTable(nlsr& pnlsr);
void calculateHypRoutingTable(nlsr& pnlsr);
void calculateHypDryRoutingTable(nlsr&pnlsr);
void clearRoutingTable();
void clearDryRoutingTable();
std::list< RoutingTableEntry > rTable;
std::list< RoutingTableEntry > dryTable;
};
#endif