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