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

📄 gistfile.h

📁 此文件包含了在linux下实现tpr-tree索引的源代码
💻 H
字号:
// -*- Mode: C++ -*-//--------------------------------------------------------------------//        GiSTfile.h//        ----------////        GiST - Generalized Search Tree //        June 2001 release, Aalborg University//        //        This file is a revised version of a part of the original //        libGiST release (version  0.9beta1)     //        Copyright (c) 1996, Regents of the University of California//#ifndef GISTFILE_H#define GISTFILE_H#include "GiSTstore.h"//--------------------------------------------------------------------//  GiSTfile is a simple storage class for GiSTs to work over//  UNIX/NT files.//class GiSTfile : public GiSTstore{public:  GiSTfile() : GiSTstore() {}  void     Create(const char *filename);  void     Open  (const char *filename);  void     Close ();  void     Reset ();  void     Read    (GiSTpage page, char *buf);  void     Write   (GiSTpage page, const char *buf);  GiSTpage Allocate();  void     Deallocate(GiSTpage page);  void     Sync    () {}  int      PageSize() const { return 1024; }private:  GiSTpage maxPage;  int      fileHandle;};#endif

⌨️ 快捷键说明

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