ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Tree-M/PMT.h
Revision: 1.1
Committed: Sun May 6 00:45:51 2001 UTC (23 years ago) by root
Content type: text/plain
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #ifndef PMT_H
2     #define PMT_H
3    
4     #include <GiSTlist.h>
5    
6     class MT;
7    
8     class PMT {
9     MT *mt;
10    
11     public: // easier. I don't care anyways
12     int ndims;
13     double min;
14     double max;
15     double steps;
16    
17     double maxDist;
18     int elemsize;
19    
20     public:
21     PMT(int ndims, double min, double max, double steps);
22     ~PMT();
23     void create(const char *path);
24     void open(const char *path);
25     void insert(double *k, int data);
26     double distance(double *k1, double *k2) const;
27     void range(double *k, double r) const;
28     void top(double *k, int n) const;
29     //bulkload(PKey *o, int count);
30     };
31    
32     #define ACC (current_pmt)
33     #define NDIMS (ACC->ndims)
34    
35     extern const PMT *current_pmt;
36    
37     extern void add_result(double distance, int data, double *k, int ndims);
38    
39     #endif