21 #ifndef XAPIAN_INCLUDED_INMEMORY_POSITIONLIST_H
22 #define XAPIAN_INCLUDED_INMEMORY_POSITIONLIST_H
PositionList from an InMemory DB or a Document object.
Xapian::termpos back() const
Return the final entry in this positionlist.
void assign(const Xapian::VecCOW< Xapian::termpos > &positions_)
Assign copied positional data.
Xapian::VecCOW< Xapian::termpos > positions
Sorted list of term positions.
void operator=(const InMemoryPositionList &)=delete
Don't allow assignment.
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.
InMemoryPositionList(const Xapian::VecCOW< Xapian::termpos > &positions_)
Construct with copied positional data.
InMemoryPositionList()
Construct with an empty position list.
size_t index
Current index into positions.
InMemoryPositionList(const InMemoryPositionList &)=delete
Don't allow copying.
InMemoryPositionList(Xapian::VecCOW< Xapian::termpos > &&positions_)
Move construct with positional data.
bool next()
Advance to the next entry in the positionlist.
void assign(Xapian::VecCOW< Xapian::termpos > &&positions_)
Move assign positional data.
Abstract base class for iterating term positions in a document.
Suitable for "simple" type T.
auto copy() const -> typename std::enable_if_t< ENABLE, Vec_to_copy >
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Abstract base class for iterating term positions in a document.
Custom vector implementations using small vector optimisation.