67 const char * end = data.data() + data.size();
69 current_term.resize(0);
74 current_term.assign(p, len);
Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
std::string get_termname() const
Return the termname at the current position.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
TermList * skip_to(const std::string &)
Skip forward to the specified term.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
bool at_end() const
Return true if the current position is past the last term in this list.
TermList * next()
Advance the current position to the next term in the termlist.
InvalidOperationError indicates the API was used in an invalid way.
Class for iterating over term positions.
Abstract base class for termlists.
Hierarchy of classes which Xapian can throw as exceptions.
void decode_length_and_check(const char **p, const char *end, unsigned &out)
Decode a length encoded by encode_length.
length encoded as a string
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
A vector-like container of terms which can be iterated.