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

lemur::retrieval::ArrayAccumulator Class Reference

Array Score Accumulator. More...

#include <ScoreAccumulator.hpp>

Inheritance diagram for lemur::retrieval::ArrayAccumulator:

lemur::api::ScoreAccumulator List of all members.

Public Member Functions

 ArrayAccumulator (int maxID)
virtual ~ArrayAccumulator ()
virtual void reset ()
 Reset all entries to zero.

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

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

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

virtual void startIteration () const
 Iteration support.

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

Protected Attributes

int p
int sz
double * acc
short * status

Detailed Description

Array Score Accumulator.


Constructor & Destructor Documentation

lemur::retrieval::ArrayAccumulator::ArrayAccumulator int  maxID  )  [inline]
 

virtual lemur::retrieval::ArrayAccumulator::~ArrayAccumulator  )  [inline, virtual]
 


Member Function Documentation

bool lemur::retrieval::ArrayAccumulator::findScore int  id,
double &  score
const [virtual]
 

Find the score value for an id.

Implements lemur::api::ScoreAccumulator.

bool lemur::retrieval::ArrayAccumulator::hasMore  )  const [virtual]
 

Implements lemur::api::ScoreAccumulator.

virtual void lemur::retrieval::ArrayAccumulator::incScore int  id,
double  score
[inline, virtual]
 

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

Implements lemur::api::ScoreAccumulator.

void lemur::retrieval::ArrayAccumulator::nextScore int &  id,
double &  score
const [virtual]
 

Implements lemur::api::ScoreAccumulator.

void lemur::retrieval::ArrayAccumulator::reset  )  [virtual]
 

Reset all entries to zero.

Implements lemur::api::ScoreAccumulator.

virtual void lemur::retrieval::ArrayAccumulator::setScore int  id,
double  score
[inline, virtual]
 

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

Implements lemur::api::ScoreAccumulator.

virtual void lemur::retrieval::ArrayAccumulator::startIteration  )  const [inline, virtual]
 

Iteration support.

Implements lemur::api::ScoreAccumulator.


Member Data Documentation

double* lemur::retrieval::ArrayAccumulator::acc [protected]
 

int lemur::retrieval::ArrayAccumulator::p [mutable, protected]
 

short* lemur::retrieval::ArrayAccumulator::status [protected]
 

int lemur::retrieval::ArrayAccumulator::sz [protected]
 


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