42 LOGCALL(DB,
string,
"GlassSpellingWordsList::get_termname", NO_ARGS);
103 LOGCALL(DB,
bool,
"GlassSpellingWordsList::at_end", NO_ARGS);
GlassCursor * cursor
A cursor which runs through the spelling table reading termnames from the keys.
#define LOGCALL_DTOR(CATEGORY, CLASS)
std::string get_termname() const
Returns the current termname.
bool next()
Advance to the next key.
Abstract base class for termlists.
bool after_end() const
Determine whether cursor is off the end of table.
~GlassSpellingWordsList()
Destructor.
bool read_tag(bool keep_compressed=false)
Read the tag from the table and store it in current_tag.
Hierarchy of classes which Xapian can throw as exceptions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
A termlist containing all words which are spelling targets.
string current_key
Current key pointed to by cursor.
string current_tag
Current tag pointed to by cursor.
Xapian::doccount get_termfreq() const
Returns the term frequency of the current term.
bool startswith(const std::string &s, char pfx)
bool find_entry_ge(const string &key)
Position the cursor on the lowest entry with key >= key.
DatabaseCorruptError indicates database corruption was detected.
TermList * skip_to(const std::string &tname)
Advance to the first term which is >= tname.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
bool at_end() const
True if we're off the end of the list.
Pack types into strings and unpack them again.
bool unpack_uint_last(const char **p, const char *end, U *result)
Decode an unsigned integer as the last item in a string.
Various handy helpers which std::string really should provide.
TermList * next()
Advance to the next term in the list.
void to_end()
Set the cursor to be off the end of the table.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)