xapian-core  2.0.0
exactphrasepostlist.h
Go to the documentation of this file.
1 
22 #ifndef XAPIAN_INCLUDED_EXACTPHRASEPOSTLIST_H
23 #define XAPIAN_INCLUDED_EXACTPHRASEPOSTLIST_H
24 
25 #include "selectpostlist.h"
26 #include <vector>
27 
28 class EstimateOp;
29 class PostListTree;
30 
42  std::vector<PostList*> terms;
43 
45 
46  unsigned * order;
47 
49  void start_position_list(unsigned i);
50 
52  bool test_doc();
53 
54  public:
56  EstimateOp* estimate_op_,
57  const std::vector<PostList*>::const_iterator &terms_begin,
58  const std::vector<PostList*>::const_iterator &terms_end,
59  PostListTree* pltree_);
60 
62 
63  Xapian::termcount get_wdf() const;
64 
65  std::string get_description() const;
66 };
67 
68 #endif
Class for estimating the total number of matching documents.
Definition: estimateop.h:64
Postlist which matches an exact phrase using positional information.
std::vector< PostList * > terms
PositionList ** poslists
bool test_doc()
Test if the current document contains the terms as an exact phrase.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
void start_position_list(unsigned i)
Start reading from the i-th position list.
std::string get_description() const
Return a string description of this object.
ExactPhrasePostList(PostList *source_, EstimateOp *estimate_op_, const std::vector< PostList * >::const_iterator &terms_begin, const std::vector< PostList * >::const_iterator &terms_end, PostListTree *pltree_)
Base class for classes which filter another PostList.
Abstract base class for postlists.
Definition: postlist.h:40
Abstract base class for iterating term positions in a document.
Definition: positionlist.h:32
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Definition: types.h:64
Base class for classes which filter another PostList.