#ifndef PMT_H #define PMT_H #include class MT; class PMT { MT *mt; public: // easier. I don't care anyways int ndims; double min; double max; double steps; double maxDist; int elemsize; public: PMT(int ndims, double min, double max, double steps); ~PMT(); void create(const char *path); void open(const char *path); void insert(double *k, int data); double distance(double *k1, double *k2) const; void range(double *k, double r) const; void top(double *k, int n) const; //bulkload(PKey *o, int count); }; #define ACC (current_pmt) #define NDIMS (ACC->ndims) extern const PMT *current_pmt; extern void add_result(double distance, int data, double *k, int ndims); #endif