ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Tree-M/GiST/GiSTpredicate.cpp
Revision: 1.1
Committed: Sun May 6 00:45:52 2001 UTC (23 years, 1 month ago) by root
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.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