21 #ifndef XAPIAN_INCLUDED_WRAPPERPOSTLIST_H
22 #define XAPIAN_INCLUDED_WRAPPERPOSTLIST_H
Base class for a PostList which wraps another PostList.
bool at_end() const
Return true if the current position is past the last entry in this list.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
PositionList * read_position_list()
Read the position list for the term in the current document and return a pointer to it (owned by the ...
WrapperPostList(const WrapperPostList &)=delete
Don't allow copying.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
Xapian::docid get_docid() const
Return the current docid.
WrapperPostList(PostList *pl_)
PostList * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
std::string get_description() const
Return a string description of this object.
double get_weight(Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const
Return the weight contribution for the current position.
void operator=(const WrapperPostList &)=delete
Don't allow assignment.
Abstract base class for postlists.
Xapian::doccount get_termfreq() const
Get an estimate of the number of documents this PostList will return.
PostList * next()
Advance the current position to the next document in the postlist.
Xapian::doccount termfreq
Estimate of the number of documents this PostList will return.
Abstract base class for iterating term positions in a document.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for postlists.