22 #ifndef XAPIAN_HGUARD_CHERT_SPELLINGWORDSLIST_H 23 #define XAPIAN_HGUARD_CHERT_SPELLINGWORDSLIST_H 60 : database(database_), cursor(cursor_), termfreq(0) {
A cursor pointing to a position in a Btree table, for reading several entries in order, or finding approximate matches.
ChertCursor * cursor
A cursor which runs through the spelling table reading termnames from the keys.
TermList * next()
Advance to the next term in the list.
Xapian::termcount termfreq
The term frequency of the term at the current position.
Abstract base class for termlists.
void operator=(const ChertSpellingWordsList &)
Assignment is not allowed.
Xapian::doccount get_termfreq() const
Returns the term frequency of the current term.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
std::string get_termname() const
Returns the current termname.
~ChertSpellingWordsList()
Destructor.
void read_termfreq() const
Read and cache the term frequency.
Abstract base class for iterating all terms in a database.
Spelling correction data for a chert database.
ChertSpellingWordsList(Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database_, ChertCursor *cursor_)
bool at_end() const
True if we're off the end of the list.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Abstract base class for iterating all terms in a database.
TermList * skip_to(const std::string &tname)
Advance to the first term which is >= tname.
ChertSpellingWordsList(const ChertSpellingWordsList &)
Copying is not allowed.
bool find_entry(const string &key)
Position the cursor on the highest entry with key <= key.
Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database
Keep a reference to our database to stop it being deleted.