Changeset 66

Show
Ignore:
Timestamp:
1999-09-20 11:28:16 (9 years ago)
Author:
olly
Message:

Fixed building of merging tree to actually work

Location:
trunk/xapian-core/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/xapian-core/common/database.h

    r61 r66  
    4949 
    5050        virtual ~PostList() { return; } 
    51  
    52         virtual bool operator < (const PostList *x) const 
    53         { 
    54             return get_termfreq() > x->get_termfreq(); 
    55         } 
    5651}; 
    5752 
  • trunk/xapian-core/common/match.h

    r61 r66  
    33 
    44#include <queue> 
     5 
     6class PLPCmp { 
     7   public: 
     8       bool operator()(const PostList *a, const PostList *b) { 
     9           return a->get_termfreq() > b->get_termfreq(); 
     10       } 
     11}; 
    512 
    613class Match { 
     
    1118//        const int msize = 1000; 
    1219 
    13         priority_queue<PostList *> pq; 
     20        priority_queue<PostList*, vector<PostList*>, PLPCmp> pq; 
    1421 
    1522    public: