rtoracle.h
来自「模拟器提供了一个简单易用的平台」· C头文件 代码 · 共 40 行
H
40 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?