21 #ifndef XAPIAN_INCLUDED_ALLTERMSLIST_H
22 #define XAPIAN_INCLUDED_ALLTERMSLIST_H
Abstract base class for iterating all terms in a database.
AllTermsList()
Only constructable as a base class for derived classes.
virtual Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
AllTermsList(const AllTermsList &)
Don't allow copying.
virtual TermList * next()=0
Advance the current position to the next term in the termlist.
virtual Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
virtual Xapian::termcount positionlist_count() const
Return true if the current position is past the last term in this list.
virtual Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
virtual Xapian::doccount get_termfreq() const =0
Return the term frequency for the term at the current position.
virtual TermList * skip_to(const std::string &term)=0
Skip forward to the specified term.
virtual bool at_end() const =0
Return true if the current position is past the last term in this list.
void operator=(const AllTermsList &)
Don't allow assignment.
virtual std::string get_termname() const =0
Return the termname at the current position.
Class for iterating over term positions.
Abstract base class for termlists.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Abstract base class for termlists.