… | |
… | |
24 | void open(const char *path); |
24 | void open(const char *path); |
25 | void insert(double *k, int data); |
25 | void insert(double *k, int data); |
26 | double distance(double *k1, double *k2) const; |
26 | double distance(double *k1, double *k2) const; |
27 | void range(double *k, double r) const; |
27 | void range(double *k, double r) const; |
28 | void top(double *k, int n) const; |
28 | void top(double *k, int n) const; |
|
|
29 | int maxlevel() const; |
29 | //bulkload(PKey *o, int count); |
30 | //bulkload(PKey *o, int count); |
30 | }; |
31 | }; |
31 | |
32 | |
32 | #define ACC (current_pmt) |
33 | #define ACC (current_pmt) |
33 | #define NDIMS (ACC->ndims) |
34 | #define NDIMS (ACC->ndims) |
34 | |
35 | |
35 | extern const PMT *current_pmt; |
36 | extern const PMT *current_pmt; |
36 | |
37 | |
37 | extern void add_result(double distance, int data, double *k, int ndims); |
38 | extern void add_result(int data, double *k, int ndims); |
38 | |
39 | |
39 | #endif |
40 | #endif |