OrTermList Class Reference

#include <ortermlist.h>

Inheritance diagram for OrTermList:

Inheritance graph
[legend]
Collaboration diagram for OrTermList:

Collaboration graph
[legend]
List of all members.

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
TermListnext ()
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

TermListleft
 The two TermList objects we're merging.
TermListright
std::string left_current
 The current term for left and right respectively.
std::string right_current

Detailed Description

Definition at line 32 of file ortermlist.h.


Constructor & Destructor Documentation

OrTermList::OrTermList ( TermList left_,
TermList right_ 
) [inline]

Definition at line 49 of file ortermlist.h.

OrTermList::~OrTermList (  ) 

Definition at line 39 of file ortermlist.cc.

References left, and right.


Member Function Documentation

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

Definition at line 46 of file ortermlist.cc.

References DEBUGCALL, left, RETURN, and right.

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

Definition at line 172 of file ortermlist.cc.

References Assert.

Xapian::PositionIterator OrTermList::positionlist_begin (  )  const

Definition at line 179 of file ortermlist.cc.

References Assert.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.