SimpleMatchSpy Class Reference

Inheritance diagram for SimpleMatchSpy:

Inheritance graph
[legend]
Collaboration diagram for SimpleMatchSpy:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void operator() (const Xapian::Document &doc, Xapian::weight)
 Register a document with the match spy.

Public Attributes

std::vector< std::string > seen


Detailed Description

Definition at line 45 of file api_matchspy.cc.


Member Function Documentation

void SimpleMatchSpy::operator() ( const Xapian::Document doc,
Xapian::weight  wt 
) [inline, virtual]

Register a document with the match spy.

This is called by the matcher once with each document seen by the matcher during the match process. Note that the matcher will often not see all the documents which match the query, due to optimisations which allow low-weighted documents to be skipped, and allow the match process to be terminated early.

Parameters:
doc The document seen by the match spy.
wt The weight of the document.

Implements Xapian::MatchSpy.

Definition at line 50 of file api_matchspy.cc.

References Xapian::Document::get_data(), and seen.


Member Data Documentation

std::vector<std::string> SimpleMatchSpy::seen

Definition at line 48 of file api_matchspy.cc.

Referenced by DEFINE_TESTCASE(), and operator()().


The documentation for this class was generated from the following file:

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.