35 return clamp_cast<Xapian::termcount>(positions.size());
41 return positions.back();
48 return positions[index];
57 return index != positions.size();
63 if (index ==
size_t(-1))
65 auto begin = positions.begin();
66 auto end = positions.end();
67 auto it = lower_bound(begin + index, end,
termpos);
Cast a value to a type, clamping out of range values.
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)