#include <ortermlist.h>
Inheritance diagram for OrTermList:
Public Member Functions | |
OrTermList (TermList *left_, TermList *right_) | |
~OrTermList () | |
Xapian::termcount | get_approx_size () const |
void | accumulate_stats (Xapian::Internal::ExpandStats &stats) const |
std::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 |
Protected Member Functions | |
void | check_started () const |
Check that next() has already been called. | |
Protected Attributes | |
TermList * | left |
The two TermList objects we're merging. | |
TermList * | right |
std::string | left_current |
The current term for left and right respectively. | |
std::string | right_current |
Definition at line 32 of file ortermlist.h.
Definition at line 49 of file ortermlist.h.
OrTermList::~OrTermList | ( | ) |
void OrTermList::check_started | ( | ) | const [protected] |
Check that next() has already been called.
Definition at line 33 of file ortermlist.cc.
References Assert, left_current, and right_current.
Referenced by accumulate_stats(), at_end(), FreqAdderOrTermList::get_termfreq(), get_termfreq(), get_termname(), and get_wdf().
Xapian::termcount OrTermList::get_approx_size | ( | ) | const |
void OrTermList::accumulate_stats | ( | Xapian::Internal::ExpandStats & | stats | ) | const |
Definition at line 56 of file ortermlist.cc.
References check_started(), DEBUGCALL, left, left_current, right, and right_current.
string OrTermList::get_termname | ( | ) | const |
Definition at line 65 of file ortermlist.cc.
References check_started(), DEBUGCALL, left_current, RETURN, and right_current.
Xapian::termcount OrTermList::get_wdf | ( | ) | const |
Definition at line 74 of file ortermlist.cc.
References check_started(), DEBUGCALL, left, left_current, RETURN, right, and right_current.
Xapian::doccount OrTermList::get_termfreq | ( | ) | const |
Reimplemented in FreqAdderOrTermList.
Definition at line 84 of file ortermlist.cc.
References Assert, check_started(), DEBUGCALL, left, left_current, RETURN, right, and right_current.
TermList * OrTermList::next | ( | ) |
Definition at line 116 of file ortermlist.cc.
References AssertEq, DEBUGCALL, handle_prune(), left, left_current, RETURN, right, and right_current.
bool OrTermList::at_end | ( | ) | const |
Definition at line 161 of file ortermlist.cc.
References Assert, check_started(), DEBUGCALL, left, RETURN, and right.
Xapian::termcount OrTermList::positionlist_count | ( | ) | const |
Xapian::PositionIterator OrTermList::positionlist_begin | ( | ) | const |
TermList* OrTermList::left [protected] |
The two TermList objects we're merging.
Definition at line 35 of file ortermlist.h.
Referenced by accumulate_stats(), at_end(), get_approx_size(), FreqAdderOrTermList::get_termfreq(), get_termfreq(), get_wdf(), next(), and ~OrTermList().
TermList * OrTermList::right [protected] |
Definition at line 35 of file ortermlist.h.
Referenced by accumulate_stats(), at_end(), get_approx_size(), FreqAdderOrTermList::get_termfreq(), get_termfreq(), get_wdf(), next(), and ~OrTermList().
std::string OrTermList::left_current [protected] |
The current term for left and right respectively.
Until next() is first called, these will be empty strings. Once next() has been called, they won't be empty (since the empty string isn't a valid term).
Definition at line 43 of file ortermlist.h.
Referenced by accumulate_stats(), check_started(), FreqAdderOrTermList::get_termfreq(), get_termfreq(), get_termname(), get_wdf(), and next().
std::string OrTermList::right_current [protected] |
Definition at line 43 of file ortermlist.h.
Referenced by accumulate_stats(), check_started(), FreqAdderOrTermList::get_termfreq(), get_termfreq(), get_termname(), get_wdf(), and next().