Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ArrayQueryRep Class Reference

Representation of a query with a double array. More...

#include <TextQueryRep.hpp>

Inheritance diagram for ArrayQueryRep:

TextQueryRep QueryRep CORIQueryRep CosSimQueryRep OkapiQueryRep SimpleKLQueryModel TFIDFQueryRep List of all members.

Public Methods

 ArrayQueryRep (int size)
 The size passed in must be large enough to hold all the terms.

 ArrayQueryRep (int size, TextQuery &qry, Index &dbIndex)
 The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1.

 ArrayQueryRep (int size, FreqVector &qryVec)
 build a query rep with a frequency vector

virtual ~ArrayQueryRep ()
virtual void startIteration ()
 This, along with hasMore(), nextTerm(), supports iteration over terms.

virtual bool hasMore ()
virtual QueryTermnextTerm ()
 Fetch the next term. A new instance is generated; the caller is responsible for deleting it!

virtual void incCount (int wdIndex, double count)
virtual void setCount (int wdIndex, double count)
virtual double totalCount ()
virtual double scoreConstant ()
 Any query-specific constant term in the scoring formula.

virtual void setScoreConstant (double scoreConst)

Protected Methods

virtual QueryTermmakeQueryTerm (int wdIndex, double wdCount)

Protected Attributes

double scConst
ArrayCounter< double > * ct

Detailed Description

Representation of a query with a double array.


Constructor & Destructor Documentation

ArrayQueryRep::ArrayQueryRep int    size [inline]
 

The size passed in must be large enough to hold all the terms.

ArrayQueryRep::ArrayQueryRep int    size,
TextQuery   qry,
Index   dbIndex
 

The size passed in must be large enough to hold all the terms, typically dbIndex.termCountUnique()+1.

ArrayQueryRep::ArrayQueryRep int    size,
FreqVector   qryVec
 

build a query rep with a frequency vector

virtual ArrayQueryRep::~ArrayQueryRep   [inline, virtual]
 


Member Function Documentation

virtual bool ArrayQueryRep::hasMore   [inline, virtual]
 

Implements TextQueryRep.

virtual void ArrayQueryRep::incCount int    wdIndex,
double    count
[inline, virtual]
 

virtual QueryTerm* ArrayQueryRep::makeQueryTerm int    wdIndex,
double    wdCount
[inline, protected, virtual]
 

Reimplemented in OkapiQueryRep.

QueryTerm * ArrayQueryRep::nextTerm   [virtual]
 

Fetch the next term. A new instance is generated; the caller is responsible for deleting it!

Implements TextQueryRep.

virtual double ArrayQueryRep::scoreConstant   [inline, virtual]
 

Any query-specific constant term in the scoring formula.

Implements TextQueryRep.

Reimplemented in SimpleKLQueryModel.

virtual void ArrayQueryRep::setCount int    wdIndex,
double    count
[inline, virtual]
 

virtual void ArrayQueryRep::setScoreConstant double    scoreConst [inline, virtual]
 

virtual void ArrayQueryRep::startIteration   [inline, virtual]
 

This, along with hasMore(), nextTerm(), supports iteration over terms.

Implements TextQueryRep.

virtual double ArrayQueryRep::totalCount   [inline, virtual]
 


Member Data Documentation

ArrayCounter<double>* ArrayQueryRep::ct [protected]
 

double ArrayQueryRep::scConst [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Nov 25 11:27:00 2003 for Lemur Toolkit by doxygen1.2.18