Changeset 9

Show
Ignore:
Timestamp:
1999-09-14 15:16:44 (9 years ago)
Author:
olly
Message:

Added primitive match algorithm
Modified IRDatabase and iterators to accommodate match algorithm

Location:
trunk/xapian-core
Files:
3 added
2 modified

Legend:

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

    r8 r9  
    22 */ 
    33 
     4#include <map> 
     5#include <list> 
    46#include <string> 
    5 #include <map> 
    67#include <vector> 
    78 
     
    2930        void   next();          // Moves to next docid 
    3031        void   skip_to(docid);  // Moves to next docid >= specified docid 
    31         bool   are_more();      // True if there are more docid's 
     32        bool   at_end();        // True if iterator is off the end of the list 
    3233        void   close(); 
    3334}; 
     
    4142        void   next();          // Moves to next termid 
    4243        void   skip_to(termid); // Moves to next termid >= specified termid 
    43         bool   are_more();      // True if there are more termid's 
     44        bool   at_end();        // True if iterator is off the end of the list 
    4445        void   close(); 
    4546}; 
     
    4748class IRDatabase { 
    4849    private: 
     50    public: 
    4951        termid term_name_to_id(termname); 
    5052        termname term_id_to_name(termid); 
    5153 
    52         vector<PostListIterator> postlist; 
    53         vector<TermListIterator> termlist; 
    54     public: 
     54        list<PostListIterator*> postlist; 
     55        list<TermListIterator*> termlist; 
    5556}; 
    5657 
  • trunk/xapian-core/tests/dbtest.cc

    r4 r9  
    11#include "database.h" 
     2#include "match.h" 
    23 
    34int main(int argc, char *argv[]) {