📄 rtoracle.h
字号:
/* * File: rtoracle.h * Author: Suman Banerjee <suman@cs.umd.edu> * Date: July 31, 2001 * Terms: GPL * * myns simulator */#ifndef _RTORACLE_H_#define _RTORACLE_H_#include <rt.h>/* For node i, the next hop is next_hop_id[i] *//* If valid is false, then there is no known next hop path */class RoutingTableOracle : public RoutingTable {public: int num_nodes; bool *valid; int *next_hop_id; double *cost;public: RoutingTableOracle (Node * N) : RoutingTable (ROUTE_ORACLE,N) {}; int get_next_hop_id (int dst); double get_path_cost (int dst);public: void InitNodeRT (int num_nodes);};void createOracleRT (int num_nodes);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -