44 return it->second.docs.size();
53 if (!
it->first.empty()) {
55 if (tname <= it->first)
return NULL;
60 }
else if (tname.empty()) {
65 it =
tmap->lower_bound(tname);
66 while (
it !=
tmap->end() &&
it->second.term_freq == 0) ++
it;
77 if (
it->first.empty() && !
prefix.empty()) {
82 while (
it !=
tmap->end() &&
it->second.term_freq == 0) ++
it;
93 return (
it ==
tmap->end());
std::map< string, InMemoryTerm >::const_iterator it
Iterate all terms in an inmemory db.
Abstract base class for termlists.
Xapian::Internal::intrusive_ptr< const InMemoryDatabase > database
string get_termname() const
Return the termname at the current position.
bool at_end() const
Return true if the current position is past the last term in this list.
const std::map< string, InMemoryTerm > * tmap
bool startswith(const std::string &s, char pfx)
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
TermList * next()
next() causes the AllTermsList to move to the next term in the list.
static void throw_database_closed()
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various handy helpers which std::string really should provide.
TermList * skip_to(const string &tname)
Skip forward to the specified term.