📄 btpredicate.h
字号:
// -*- Mode: C++ -*-// BTpredicate.h//// Copyright (c) 1996, Regents of the University of California// $Header: /usr/local/devel/GiST/libGiST/BTree/BTpredicate.h,v 1.1.1.1 1996/08/06 23:47:18 jmh Exp $#ifndef BTPREDICATE_H#define BTPREDICATE_H#include "GiSTpredicate.h"enum BToper { BTLessThan, BTLessEqual, BTEqual, BTNotEqual, BTGreaterEqual, BTGreaterThan};class BTpredicate : public GiSTpredicate {public: BTpredicate(BToper oper, const BTkey& value) : oper(oper), value(value) {} BTpredicate(const BTpredicate& p) : oper(p.oper), value(p.value) {} GiSTobject *Copy() const { return new BTpredicate(*this); } GiSTobjid IsA() { return BTPREDICATE_CLASS; } int Consistent(const GiSTentry& entry) const; void SetOper(BToper op) { oper = op; } void SetValue(const BTkey& v) { value = v; }#ifdef PRINTING_OBJECTS void Print(ostream& os) const { const char *operstrs[] = { "<", "<=", "=", "<>", ">=", ">" }; os << "key " << operstrs[oper] << " " << value; }#endifprivate: BToper oper; BTkey value;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -