1 |
// -*- Mode: C++ -*- |
2 |
|
3 |
// GiSTpredicate.cpp |
4 |
// |
5 |
// Copyright (c) 1996, Regents of the University of California |
6 |
// $Header: /usr/local/devel/GiST/libGiST/libGiST/GiSTpredicate.cpp,v 1.1.1.1 1996/08/06 23:47:21 jmh Exp $ |
7 |
|
8 |
#include <string.h> |
9 |
|
10 |
#include "GiST.h" |
11 |
|
12 |
int PtrPredicate::Consistent(const GiSTentry& entry) const |
13 |
{ |
14 |
return !entry.IsLeaf()||entry.Ptr()==page; |
15 |
} |
16 |
|
17 |
GiSTobject* PtrPredicate::Copy() const |
18 |
{ |
19 |
return new PtrPredicate(page); |
20 |
} |
21 |
|
22 |
#ifdef PRINTING_OBJECTS |
23 |
void PtrPredicate::Print(ostream& os) const |
24 |
{ |
25 |
os << "ptr = " << page; |
26 |
} |
27 |
#endif |