34 PositionIterator::decref()
37 if (--internal->_refs == 0)
41 PositionIterator::PositionIterator(
Internal *internal_) : internal(internal_)
60 : internal(o.internal)
115 string desc =
"PositionIterator(";
117 desc +=
internal->get_description();
121 return "PositionIterator()";
unsigned _refs
Reference count.
Abstract base class for iterating term positions in a document.
virtual bool next()=0
Advance to the next entry in the positionlist.
virtual bool skip_to(Xapian::termpos termpos)=0
Skip forward to the specified position.
virtual Xapian::termpos get_position() const =0
Return the current position.
Class for iterating over term positions.
void skip_to(Xapian::termpos termpos)
Advance the iterator to term position termpos.
PositionIterator & operator=(const PositionIterator &o)
Assignment.
PositionIterator()
Default constructor.
Xapian::termpos operator*() const
Return the term position at the current iterator position.
PositionIterator & operator++()
Advance the iterator to the next position.
std::string get_description() const
Return a string describing this object.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Various assertion macros.
Class for iterating over term positions.
Abstract base class for iterating term positions in a document.