FreqAdderOrTermList Class Reference

A termlist which ORs two termlists together, adding term frequencies. More...

#include <ortermlist.h>

Inheritance diagram for FreqAdderOrTermList:

Inheritance graph
[legend]
Collaboration diagram for FreqAdderOrTermList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FreqAdderOrTermList (TermList *left_, TermList *right_)
Xapian::doccount get_termfreq () const

Detailed Description

A termlist which ORs two termlists together, adding term frequencies.

This termlist is just like OrTermList, but adds the term frequencies of terms which appear in both sublists together, rather than asserting that the frequencies are equal. This is appropriate for spelling termlists.

Definition at line 83 of file ortermlist.h.


Constructor & Destructor Documentation

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

Definition at line 85 of file ortermlist.h.


Member Function Documentation

Xapian::doccount FreqAdderOrTermList::get_termfreq (  )  const

Reimplemented from OrTermList.

Definition at line 187 of file ortermlist.cc.

References OrTermList::check_started(), DEBUGCALL, OrTermList::left, OrTermList::left_current, RETURN, OrTermList::right, and OrTermList::right_current.


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.