📄 gistdefs.h
字号:
// -*- Mode: C++ -*-//--------------------------------------------------------------------// GiSTdefs.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 GISTDEFS_H#define GISTDEFS_H#include <assert.h>#include <stdlib.h>#include <math.h>#ifdef PRINTING_OBJECTS#include <iostream.h>#endif// A GiSTpage is a disk page number (a "pointer" to a disk page)typedef unsigned long GiSTpage;//------------------------------------------------// GiSTobjid's are used to identify objects// You can add new ones as you define new objects, or simply// make things be GISTOBJECT_CLASS if you don't want to bother.typedef enum{ GISTOBJECT_CLASS, GIST_CLASS, BT_CLASS, RT_CLASS, GISTENTRY_CLASS, GISTNODE_CLASS, BTNODE_CLASS, BTENTRY_CLASS, BTKEY_CLASS, RTNODE_CLASS, RTENTRY_CLASS, RTKEY_CLASS, GISTPREDICATE_CLASS, BTPREDICATE_CLASS, RTPREDICATE_CLASS, GISTCURSOR_CLASS, GISTOBSERVER_CLASS} GiSTobjid;//------------------------------------------------// GiSTobject is the base class for all GiST classes// It provides identity, equality tests and display of objectsclass GiSTobject{public: virtual GiSTobjid IsA() const { return GISTOBJECT_CLASS; } virtual GiSTobject *Copy() const { return NULL; } virtual int IsEqual (const GiSTobject& obj) const { return 0; }#ifdef PRINTING_OBJECTS virtual void Print(ostream& os) const { os << "No print method\n"; }#endif virtual ~GiSTobject() {}};#ifdef PRINTING_OBJECTSinline ostream& operator<< (ostream& os, const GiSTobject& obj) { obj.Print(os); return os;}inline ostream& operator<< (ostream& os, const GiSTobject *obj) { obj->Print(os); return os;}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -