#include <inmemory_database.h>
Inheritance diagram for InMemoryTermList:
Public Member Functions | |
Xapian::termcount | get_approx_size () const |
void | accumulate_stats (Xapian::Internal::ExpandStats &stats) const |
Collate weighting information for the current term. | |
string | get_termname () const |
Xapian::termcount | get_wdf () const |
Xapian::doccount | get_termfreq () const |
TermList * | next () |
bool | at_end () const |
Xapian::termcount | positionlist_count () const |
Xapian::PositionIterator | positionlist_begin () const |
Private Member Functions | |
InMemoryTermList (Xapian::Internal::RefCntPtr< const InMemoryDatabase > db, Xapian::docid did, const InMemoryDoc &doc, Xapian::doclength len) | |
Private Attributes | |
vector< InMemoryTermEntry >::const_iterator | pos |
vector< InMemoryTermEntry >::const_iterator | end |
Xapian::termcount | terms |
bool | started |
Xapian::Internal::RefCntPtr< const InMemoryDatabase > | db |
Xapian::docid | did |
Xapian::doclength | document_length |
Friends | |
class | InMemoryDatabase |
Definition at line 197 of file inmemory_database.h.
InMemoryTermList::InMemoryTermList | ( | Xapian::Internal::RefCntPtr< const InMemoryDatabase > | db, | |
Xapian::docid | did, | |||
const InMemoryDoc & | doc, | |||
Xapian::doclength | len | |||
) | [private] |
Definition at line 181 of file inmemory_database.cc.
References DEBUGLINE, document_length, pos, and terms.
Xapian::termcount InMemoryTermList::get_approx_size | ( | ) | const |
void InMemoryTermList::accumulate_stats | ( | Xapian::Internal::ExpandStats & | stats | ) | const |
Collate weighting information for the current term.
Definition at line 217 of file inmemory_database.cc.
References Xapian::Internal::ExpandStats::accumulate(), Assert, at_end(), db, document_length, get_termfreq(), get_wdf(), and started.
string InMemoryTermList::get_termname | ( | ) | const |
Xapian::termcount InMemoryTermList::get_wdf | ( | ) | const |
Definition at line 194 of file inmemory_database.cc.
References Assert, at_end(), and started.
Referenced by accumulate_stats().
Xapian::doccount InMemoryTermList::get_termfreq | ( | ) | const |
Definition at line 202 of file inmemory_database.cc.
References Assert, at_end(), db, and started.
Referenced by accumulate_stats().
TermList * InMemoryTermList::next | ( | ) |
bool InMemoryTermList::at_end | ( | ) | const |
Definition at line 247 of file inmemory_database.cc.
References Assert, end, pos, and started.
Referenced by accumulate_stats(), get_termfreq(), get_termname(), get_wdf(), and next().
Xapian::termcount InMemoryTermList::positionlist_count | ( | ) | const |
Xapian::PositionIterator InMemoryTermList::positionlist_begin | ( | ) | const |
friend class InMemoryDatabase [friend] |
Definition at line 198 of file inmemory_database.h.
vector<InMemoryTermEntry>::const_iterator InMemoryTermList::pos [private] |
Definition at line 200 of file inmemory_database.h.
Referenced by at_end(), InMemoryTermList(), and next().
vector<InMemoryTermEntry>::const_iterator InMemoryTermList::end [private] |
Xapian::termcount InMemoryTermList::terms [private] |
Reimplemented from TermList.
Definition at line 202 of file inmemory_database.h.
Referenced by get_approx_size(), and InMemoryTermList().
bool InMemoryTermList::started [private] |
Definition at line 203 of file inmemory_database.h.
Referenced by accumulate_stats(), at_end(), get_termfreq(), get_termname(), get_wdf(), and next().
Xapian::Internal::RefCntPtr<const InMemoryDatabase> InMemoryTermList::db [private] |
Definition at line 205 of file inmemory_database.h.
Referenced by accumulate_stats(), get_termfreq(), positionlist_begin(), and positionlist_count().
Xapian::docid InMemoryTermList::did [private] |
Definition at line 206 of file inmemory_database.h.
Referenced by positionlist_begin(), and positionlist_count().
Definition at line 207 of file inmemory_database.h.
Referenced by accumulate_stats(), and InMemoryTermList().