31 : positions(positions_), mypos(positions.begin()),
32 iterating_in_progress(
false)
PositionList from an InMemory DB or a Document object.
Xapian::termpos get_position() const
Gets current position.
bool next()
Move to the next item in the list.
vector< Xapian::termpos >::const_iterator mypos
Position of iteration through positions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount get_approx_size() const
Gets size of position list.
vector< Xapian::termpos > term_positions
bool iterating_in_progress
True if we have started iterating.
vector< Xapian::termpos > positions
The list of positions.
InMemoryPositionList()
Default constructor.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Various assertion macros.
bool skip_to(Xapian::termpos termpos)
Move to the next item in the list.
void set_data(const OmDocumentTerm::term_positions &positions_)
Fill list with data, and move the position to the start.