Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::api::ScoreAccumulator Class Reference

Abstract Score Accumulator. More...

#include <ScoreAccumulator.hpp>

Inheritance diagram for lemur::api::ScoreAccumulator:

lemur::retrieval::ArrayAccumulator List of all members.

Public Member Functions

virtual ~ScoreAccumulator ()
virtual void reset ()=0
 clear, reset

virtual bool findScore (int id, double &score) const =0
 Find the score value for an id.

virtual void setScore (int id, double score)=0
 Set the score value of an id, add the id if it doesn't exist.

virtual void incScore (int id, double score)=0
 Increase the score value of an id, add the id if it doesn't exist.

virtual void startIteration () const =0
 Iteration support.

virtual bool hasMore () const =0
virtual void nextScore (int &id, double &score) const =0

Detailed Description

Abstract Score Accumulator.


Constructor & Destructor Documentation

virtual lemur::api::ScoreAccumulator::~ScoreAccumulator  )  [inline, virtual]
 


Member Function Documentation

virtual bool lemur::api::ScoreAccumulator::findScore int  id,
double &  score
const [pure virtual]
 

Find the score value for an id.

Implemented in lemur::retrieval::ArrayAccumulator.

virtual bool lemur::api::ScoreAccumulator::hasMore  )  const [pure virtual]
 

Implemented in lemur::retrieval::ArrayAccumulator.

virtual void lemur::api::ScoreAccumulator::incScore int  id,
double  score
[pure virtual]
 

Increase the score value of an id, add the id if it doesn't exist.

Implemented in lemur::retrieval::ArrayAccumulator.

virtual void lemur::api::ScoreAccumulator::nextScore int &  id,
double &  score
const [pure virtual]
 

Implemented in lemur::retrieval::ArrayAccumulator.

virtual void lemur::api::ScoreAccumulator::reset  )  [pure virtual]
 

clear, reset

Implemented in lemur::retrieval::ArrayAccumulator.

virtual void lemur::api::ScoreAccumulator::setScore int  id,
double  score
[pure virtual]
 

Set the score value of an id, add the id if it doesn't exist.

Implemented in lemur::retrieval::ArrayAccumulator.

virtual void lemur::api::ScoreAccumulator::startIteration  )  const [pure virtual]
 

Iteration support.

Implemented in lemur::retrieval::ArrayAccumulator.


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4