#include <inmemory_alltermslist.h>


Public Member Functions | |
| InMemoryAllTermsList (const std::map< string, InMemoryTerm > *tmap_, Xapian::Internal::RefCntPtr< const InMemoryDatabase > database_, const string &prefix_) | |
| Constructor. | |
| string | get_termname () const |
| Return the termname at the current position. | |
| Xapian::doccount | get_termfreq () const |
| Return the term frequency for the term at the current position. | |
| Xapian::termcount | get_collection_freq () const |
| Return the collection frequency for the term at the current position. | |
| TermList * | skip_to (const string &tname) |
| Skip forward to the specified term. | |
| TermList * | next () |
| next() causes the AllTermsList to move to the next term in the list. | |
| bool | at_end () const |
| Return true if the current position is past the last term in this list. | |
Private Member Functions | |
| InMemoryAllTermsList (const InMemoryAllTermsList &) | |
| Copying is not allowed. | |
| void | operator= (const InMemoryAllTermsList &) |
| Assignment is not allowed. | |
Private Attributes | |
| const std::map< string, InMemoryTerm > * | tmap |
| std::map< string, InMemoryTerm > ::const_iterator | it |
| Xapian::Internal::RefCntPtr < const InMemoryDatabase > | database |
| string | prefix |
Definition at line 29 of file inmemory_alltermslist.h.
| InMemoryAllTermsList::InMemoryAllTermsList | ( | const InMemoryAllTermsList & | ) | [private] |
Copying is not allowed.
| InMemoryAllTermsList::InMemoryAllTermsList | ( | const std::map< string, InMemoryTerm > * | tmap_, | |
| Xapian::Internal::RefCntPtr< const InMemoryDatabase > | database_, | |||
| const string & | prefix_ | |||
| ) | [inline] |
| bool InMemoryAllTermsList::at_end | ( | ) | const [virtual] |
Return true if the current position is past the last term in this list.
Implements AllTermsList.
Definition at line 97 of file inmemory_alltermslist.cc.
References Assert, database, it, and tmap.
Referenced by get_collection_freq(), get_termfreq(), and get_termname().
| Xapian::termcount InMemoryAllTermsList::get_collection_freq | ( | ) | const [virtual] |
Return the collection frequency for the term at the current position.
Implements AllTermsList.
Definition at line 47 of file inmemory_alltermslist.cc.
| Xapian::doccount InMemoryAllTermsList::get_termfreq | ( | ) | const [virtual] |
Return the term frequency for the term at the current position.
Implements AllTermsList.
Definition at line 37 of file inmemory_alltermslist.cc.
| string InMemoryAllTermsList::get_termname | ( | ) | const [virtual] |
Return the termname at the current position.
Implements AllTermsList.
Definition at line 28 of file inmemory_alltermslist.cc.
| TermList * InMemoryAllTermsList::next | ( | ) | [virtual] |
next() causes the AllTermsList to move to the next term in the list.
Implements AllTermsList.
Definition at line 81 of file inmemory_alltermslist.cc.
References Assert, database, it, prefix, startswith(), and tmap.
| void InMemoryAllTermsList::operator= | ( | const InMemoryAllTermsList & | ) | [private] |
Assignment is not allowed.
| TermList * InMemoryAllTermsList::skip_to | ( | const string & | term | ) | [virtual] |
Skip forward to the specified term.
If the specified term isn't in the list, position ourselves on the first term after term (or at_end() if no terms after term exist).
Implements AllTermsList.
Definition at line 56 of file inmemory_alltermslist.cc.
References Assert, database, it, prefix, startswith(), and tmap.
Xapian::Internal::RefCntPtr<const InMemoryDatabase> InMemoryAllTermsList::database [private] |
Definition at line 42 of file inmemory_alltermslist.h.
Referenced by at_end(), get_collection_freq(), get_termfreq(), get_termname(), next(), and skip_to().
std::map<string, InMemoryTerm>::const_iterator InMemoryAllTermsList::it [private] |
Definition at line 40 of file inmemory_alltermslist.h.
Referenced by at_end(), get_collection_freq(), get_termfreq(), get_termname(), next(), and skip_to().
string InMemoryAllTermsList::prefix [private] |
const std::map<string, InMemoryTerm>* InMemoryAllTermsList::tmap [private] |
Definition at line 38 of file inmemory_alltermslist.h.