giststore.h
来自「此文件包含了在linux下实现tpr-tree索引的源代码」· C头文件 代码 · 共 49 行
H
49 行
// -*- Mode: C++ -*-//--------------------------------------------------------------------// GiSTstore.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 GISTSTORE_H#define GISTSTORE_H#include "GiSTdefs.h"//--------------------------------------------------------------------// GiSTstore is the parent class for storage of GiST pages. GiSTfile is// provided as an example descendant of GiSTstore.//class GiSTstore{public: GiSTstore() : isOpen(0) {} virtual void Create(const char *filename) = 0; virtual void Open (const char *filename) = 0; virtual void Close () = 0; virtual void Reset () = 0; // Returns into the state as after Create virtual void Read (GiSTpage page, char *buf) = 0; virtual void Write (GiSTpage page, const char *buf) = 0; virtual GiSTpage Allocate () = 0; virtual void Deallocate(GiSTpage page) = 0; virtual void Sync () = 0; virtual int IsOpen () { return isOpen; } virtual int PageSize () const = 0; virtual ~GiSTstore() {}protected: void SetOpen(int o) { isOpen = o; }private: int isOpen;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?