xapian-core  2.0.0
phrasepostlist.h
Go to the documentation of this file.
1 
22 #ifndef XAPIAN_INCLUDED_PHRASEPOSTLIST_H
23 #define XAPIAN_INCLUDED_PHRASEPOSTLIST_H
24 
25 #include "selectpostlist.h"
26 #include <vector>
27 
28 class EstimateOp;
29 class PostListTree;
30 
43 
44  std::vector<PostList*> terms;
45 
47 
49  void start_position_list(unsigned i);
50 
52  bool test_doc();
53 
54  public:
55  PhrasePostList(PostList *source_,
56  EstimateOp* estimate_op_,
57  Xapian::termpos window_,
58  const std::vector<PostList*>::const_iterator &terms_begin,
59  const std::vector<PostList*>::const_iterator &terms_end,
60  PostListTree* pltree_);
61 
63 
64  Xapian::termcount get_wdf() const;
65 
66  std::string get_description() const;
67 };
68 
69 #endif
Class for estimating the total number of matching documents.
Definition: estimateop.h:64
Postlist which matches a phrase using positional information.
void start_position_list(unsigned i)
Start reading from the i-th position list.
PhrasePostList(PostList *source_, EstimateOp *estimate_op_, Xapian::termpos window_, const std::vector< PostList * >::const_iterator &terms_begin, const std::vector< PostList * >::const_iterator &terms_end, PostListTree *pltree_)
std::vector< PostList * > terms
PositionList ** poslists
std::string get_description() const
Return a string description of this object.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
Xapian::termpos window
bool test_doc()
Test if the current document contains the terms as a phrase.
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
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Definition: types.h:75
Base class for classes which filter another PostList.