⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tprtree.cpp

📁 此文件包含了在linux下实现tpr-tree索引的源代码
💻 CPP
字号:
//--------------------------------------------------------------------//      tprtree.cpp//      -----------//      Main module of the experimental testbed////      TPR-tree - Index for continuously moving objects//      July 2001 release, Aalborg University//#include <stdio.h>#ifdef UNIX#include <unistd.h>#include <ctype.h>#endif#include "rtprofile.h"#include "command.h"#include "sgram.h"ostream& outstr = cout;        // Redirecting the output to cout RTobserver obs;void Register     (GiST* rt) { rt->RegisterObserver(&obs); obs.Reset(); }void RefreshVisualiser()     { obs.Refresh();                           }void Quit             ()     { exit(0);                                 }char* GetCommandString (char* buf){   if (numImports)          // Getting commands from import file     {      *buf = '\x0';      fgets(buf, 90, imports[numImports - 1]);      if (feof(imports[numImports-1]))      {          fclose(imports[--numImports]);          if (buf[strlen(buf)-1] == '\n') return GetCommandString(buf);      }      if (buf[strlen(buf)-1] == '\n') buf[strlen(buf)-1] = '\x0';      return buf;       }   return gets(buf);       // Getting commands from command prompt}//====================================================================int main(){   outstr << "** Experimental testbed for access methods for moving points"          << endl          << "   1999--2001, Aalborg University"           << endl << endl;//    outstr << "Type \"help\" for a list of commands." << endl << endl;    CommandPrompt();    PROFILE_ACTION_BEGIN(profile_total);    ParseCommands();    return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -