#include <inmemory_alltermslist.h>
Inheritance diagram for InMemoryAllTermsList:


Public Member Functions | |
| InMemoryAllTermsList (const std::map< string, InMemoryTerm > *tmap_, Xapian::Internal::RefCntPtr< const InMemoryDatabase > database_, const string &prefix) | |
| Standard constructor for base class. | |
| ~InMemoryAllTermsList () | |
| Standard destructor for base class. | |
| 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) |
| 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 |
| bool | started |
| string | prefix |
Definition at line 31 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 | |||
| ) |
| InMemoryAllTermsList::~InMemoryAllTermsList | ( | ) |
| void InMemoryAllTermsList::operator= | ( | const InMemoryAllTermsList & | ) | [private] |
Assignment is not allowed.
| string InMemoryAllTermsList::get_termname | ( | ) | const [virtual] |
Return the termname at the current position.
Implements AllTermsList.
Definition at line 39 of file inmemory_alltermslist.cc.
References Assert, at_end(), it, and started.
Referenced by skip_to().
| Xapian::doccount InMemoryAllTermsList::get_termfreq | ( | ) | const [virtual] |
Return the term frequency for the term at the current position.
Implements AllTermsList.
Definition at line 47 of file inmemory_alltermslist.cc.
| Xapian::termcount InMemoryAllTermsList::get_collection_freq | ( | ) | const [virtual] |
Return the collection frequency for the term at the current position.
Implements AllTermsList.
Definition at line 56 of file inmemory_alltermslist.cc.
| TermList * InMemoryAllTermsList::skip_to | ( | const string & | tname | ) |
Definition at line 64 of file inmemory_alltermslist.cc.
References Assert, at_end(), get_termname(), it, prefix, started, startswith(), and tmap.
| TermList * InMemoryAllTermsList::next | ( | ) | [virtual] |
next() causes the AllTermsList to move to the next term in the list.
Implements AllTermsList.
Definition at line 84 of file inmemory_alltermslist.cc.
References Assert, at_end(), it, prefix, started, startswith(), and tmap.
| 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 100 of file inmemory_alltermslist.cc.
References Assert, it, started, and tmap.
Referenced by get_collection_freq(), get_termfreq(), get_termname(), next(), and skip_to().
const std::map<string, InMemoryTerm>* InMemoryAllTermsList::tmap [private] |
Definition at line 40 of file inmemory_alltermslist.h.
std::map<string, InMemoryTerm>::const_iterator InMemoryAllTermsList::it [private] |
Definition at line 42 of file inmemory_alltermslist.h.
Referenced by at_end(), get_termfreq(), get_termname(), next(), and skip_to().
Xapian::Internal::RefCntPtr<const InMemoryDatabase> InMemoryAllTermsList::database [private] |
Definition at line 44 of file inmemory_alltermslist.h.
bool InMemoryAllTermsList::started [private] |
Definition at line 46 of file inmemory_alltermslist.h.
Referenced by at_end(), get_collection_freq(), get_termfreq(), get_termname(), next(), and skip_to().
string InMemoryAllTermsList::prefix [private] |