// -*- Mode: C++ -*- // GiSTpredicate.cpp // // Copyright (c) 1996, Regents of the University of California // $Header: /schmorpforge/Tree-M/GiST/GiSTpredicate.cpp,v 1.1 2001/05/06 00:45:52 root Exp $ #include #include "GiST.h" int PtrPredicate::Consistent(const GiSTentry& entry) const { return !entry.IsLeaf()||entry.Ptr()==page; } GiSTobject* PtrPredicate::Copy() const { return new PtrPredicate(page); } #ifdef PRINTING_OBJECTS void PtrPredicate::Print(ostream& os) const { os << "ptr = " << page; } #endif