xapian-core
1.4.27
|
Class for iterating over term positions. More...
#include <positioniterator.h>
Public Member Functions | |
PositionIterator (const PositionIterator &o) | |
Copy constructor. | |
PositionIterator & | operator= (const PositionIterator &o) |
Assignment. | |
PositionIterator () | |
Default constructor. | |
~PositionIterator () | |
Destructor. | |
Xapian::termpos | operator* () const |
Return the term position at the current iterator position. | |
PositionIterator & | operator++ () |
Advance the iterator to the next position. | |
DerefWrapper_< Xapian::termpos > | operator++ (int) |
Advance the iterator to the next position (postfix version). | |
void | skip_to (Xapian::termpos termpos) |
Advance the iterator to term position termpos. | |
std::string | get_description () const |
Return a string describing this object. | |
Class for iterating over term positions.
|
inline |
Default constructor.
Creates an uninitialised iterator, which can't be used before being assigned to, but is sometimes syntactically convenient.
void Xapian::PositionIterator::skip_to | ( | Xapian::termpos | termpos | ) |
Advance the iterator to term position termpos.
termpos | The position to advance to. If this position isn't in the stream being iterated, then the iterator is moved to the next term position after it which is. |