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

ScoreAccumulator Class Reference

Abstract Score Accumulator. More...

#include <ScoreAccumulator.hpp>

Inheritance diagram for ScoreAccumulator:

ArrayAccumulator List of all members.

Public Methods

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.


Member Function Documentation

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

Find the score value for an id.

Implemented in ArrayAccumulator.

virtual bool ScoreAccumulator::hasMore   [pure virtual]
 

Implemented in ArrayAccumulator.

virtual void 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 ArrayAccumulator.

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

Implemented in ArrayAccumulator.

virtual void ScoreAccumulator::reset   [pure virtual]
 

clear, reset

Implemented in ArrayAccumulator.

virtual void 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 ArrayAccumulator.

virtual void ScoreAccumulator::startIteration   [pure virtual]
 

Iteration support.

Implemented in ArrayAccumulator.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:54 2004 for Lemur Toolkit by doxygen1.2.18