34 return positions.size();
40 return positions.back();
47 return positions[index];
56 return index != positions.size();
62 if (index ==
size_t(-1))
64 auto begin = positions.begin();
65 auto end = positions.end();
66 auto it = lower_bound(begin + index, end,
termpos);
Xapian::termpos back() const
Return the final entry in this positionlist.
bool skip_to(Xapian::termpos termpos)
Skip forward to the specified position.
Xapian::termpos get_position() const
Return the current position.
Xapian::termcount get_approx_size() const
Return approximate size of this positionlist.
bool next()
Advance to the next entry in the positionlist.
#define UNSIGNED_OVERFLOW_OK(X)
PositionList from an InMemory DB or a Document object.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Various assertion macros.
#define AssertRel(A, REL, B)