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

ArrayAccumulator Class Reference

Array Score Accumulator. More...

#include <ScoreAccumulator.hpp>

Inheritance diagram for ArrayAccumulator:

ScoreAccumulator List of all members.

Public Methods

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

virtual bool findScore (int id, double &score)
 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 ()
 Iteration support.

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

Protected Attributes

int p
int sz
double * acc
short * status

Detailed Description

Array Score Accumulator.


Constructor & Destructor Documentation

ArrayAccumulator::ArrayAccumulator int    maxID [inline]
 

virtual ArrayAccumulator::~ArrayAccumulator   [inline, virtual]
 


Member Function Documentation

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

Find the score value for an id.

Implements ScoreAccumulator.

bool ArrayAccumulator::hasMore   [virtual]
 

Implements ScoreAccumulator.

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

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

Implements ScoreAccumulator.

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

Implements ScoreAccumulator.

void ArrayAccumulator::reset   [virtual]
 

Reset all entries to zero.

Implements ScoreAccumulator.

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

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

Implements ScoreAccumulator.

virtual void ArrayAccumulator::startIteration   [inline, virtual]
 

Iteration support.

Implements ScoreAccumulator.


Member Data Documentation

double* ArrayAccumulator::acc [protected]
 

int ArrayAccumulator::p [protected]
 

short* ArrayAccumulator::status [protected]
 

int ArrayAccumulator::sz [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:11:57 2004 for LEMUR by doxygen1.2.16