34 PostingIterator::decref()
37 if (--internal->_refs == 0)
51 if (internal->at_end()) {
57 PostingIterator::PostingIterator(
Internal *internal_) : internal(internal_)
60 if (!
internal)
return;
133 #if 0 // FIXME: TermIterator supports this, so PostingIterator really ought to. 135 PostingIterator::positionlist_count()
const 162 string desc =
"PostingIterator(";
164 desc +=
internal->get_description();
The Xapian namespace contains public interfaces for the Xapian library.
PostingIterator & operator=(const PostingIterator &o)
Assignment.
Abstract base class for postlists.
virtual Xapian::docid get_docid() const =0
Return the current docid.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
unsigned _refs
Reference count.
virtual Internal * skip_to(Xapian::docid did, double w_min)=0
Skip forward to the specified docid.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
void post_advance(Internal *res)
virtual Xapian::termcount get_unique_terms() const =0
Return the number of unique terms in the current document.
Abstract base class for postlists.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Class for iterating over a list of terms.
PostingIterator()
Default constructor.
Xapian::docid operator*() const
Return the document id at the current position.
Class for iterating over term positions.
virtual PositionList * open_position_list() const
Read the position list for the term in the current document and return a pointer to it (not owned by ...
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
PositionIterator positionlist_begin() const
Return a PositionIterator for the current document.
virtual Internal * next(double w_min)=0
Advance the current position to the next document in the postlist.
virtual Xapian::termcount get_doclength() const =0
Return the length of current document.
Xapian::termcount get_doclength() const
Return the length of the document at the current position.
void skip_to(Xapian::docid did)
Advance the iterator to document did.
Class for iterating over a list of document ids.
Various assertion macros.
PostingIterator & operator++()
Advance the iterator to the next position.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
virtual Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
std::string get_description() const
Return a string describing this object.