21 #ifndef XAPIAN_INCLUDED_DOCUMENTTERMLIST_H
22 #define XAPIAN_INCLUDED_DOCUMENTTERMLIST_H
47 std::map<std::string, TermInfo, std::less<>>::const_iterator
it;
52 :
doc(doc_),
it(
doc->terms->end()) {}
Iteration over terms in a document.
DocumentTermList(const Xapian::Document::Internal *doc_)
void operator=(const DocumentTermList &)=delete
Don't allow assignment.
const Xapian::VecCOW< Xapian::termpos > * get_vec_termpos() const
Get pointer to VecCOW<termpos> if that's the internal representation.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
TermList * skip_to(std::string_view term)
Skip forward to the specified term.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
DocumentTermList(const DocumentTermList &)=delete
Don't allow copying.
std::map< std::string, TermInfo, std::less<> >::const_iterator it
Iterator over the map inside doc.
PositionList * positionlist_begin() const
Return PositionList for the current position.
Xapian::Internal::intrusive_ptr< const Xapian::Document::Internal > doc
Document internals we're iterating over.
TermList * next()
Advance the current position to the next term in the termlist.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
Abstract base class for a document.
Abstract base class for iterating term positions in a document.
Abstract base class for termlists.
Suitable for "simple" type T.
Abstract base class for a document.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
Abstract base class for termlists.