22 #ifndef XAPIAN_INCLUDED_POSITIONITERATOR_H 23 #define XAPIAN_INCLUDED_POSITIONITERATOR_H 25 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 26 # error Never use <xapian/positioniterator.h> directly; include <xapian.h> instead. 58 #ifdef XAPIAN_MOVE_SEMANTICS 61 : internal(o.internal) {
68 if (
internal) decref();
69 internal = o.internal;
86 if (
internal) decref();
111 std::string get_description()
const;
146 return a.internal == b.internal;
161 #endif // XAPIAN_INCLUDED_POSITIONITERATOR_H The Xapian namespace contains public interfaces for the Xapian library.
Xapian::termpos value_type
Xapian::termpos * pointer
Compiler attribute macros.
std::input_iterator_tag iterator_category
bool operator!=(const ESetIterator &a, const ESetIterator &b)
Inequality test for ESetIterator objects.
Xapian::termpos_diff difference_type
~PositionIterator()
Destructor.
bool operator==(const ESetIterator &a, const ESetIterator &b)
Equality test for ESetIterator objects.
#define XAPIAN_VISIBILITY_DEFAULT
XAPIAN_TERMPOS_BASE_TYPE termpos_diff
A signed difference between two term positions.
Define XAPIAN_VISIBILITY_* macros.
Xapian::termpos & reference
Class for iterating over term positions.
const Query operator*(double factor, const Query &q)
Scale a Xapian::Query object using OP_SCALE_WEIGHT.
DerefWrapper_< Xapian::termpos > operator++(int)
Advance the iterator to the next position (postfix version).
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Class for wrapping type returned by an input_iterator.
Abstract base class for iterating term positions in a document.
PositionIterator()
Default constructor.