… | |
… | |
40 | class MTpred; |
40 | class MTpred; |
41 | |
41 | |
42 | class dst { // this class is used in the NN-search algorithm for the priority queue |
42 | class dst { // this class is used in the NN-search algorithm for the priority queue |
43 | public: |
43 | public: |
44 | dst(): bound(0), d(MAXDOUBLE) {} |
44 | dst(): bound(0), d(MAXDOUBLE) {} |
45 | dst(GiSTpath p, double LB, double dist): path(p), bound(LB), d(dist) {} |
45 | dst(GiSTpath p, double LB, double dist): bound(LB), d(dist), path(p) {} |
46 | |
46 | |
47 | double Bound() const { return bound; } |
47 | double Bound() const { return bound; } |
48 | double Dist() const { return d; } |
48 | double Dist() const { return d; } |
49 | GiSTpath Path() { return path; } |
49 | GiSTpath Path() { return path; } |
50 | private: |
50 | private: |