#include <ScoreAccumulator.hpp>
Inheritance diagram for ArrayAccumulator:
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 |
|
|
|
|
|
Find the score value for an id.
Reimplemented from ScoreAccumulator. |
|
Reimplemented from ScoreAccumulator. |
|
Increase the score value of an id, add the id if it doesn't exist.
Reimplemented from ScoreAccumulator. |
|
Reimplemented from ScoreAccumulator. |
|
Reset all entries to zero.
Reimplemented from ScoreAccumulator. |
|
Set the score value of an id, add the id if it doesn't exist.
Reimplemented from ScoreAccumulator. |
|
Iteration support.
Reimplemented from ScoreAccumulator. |
|
|
|
|
|
|
|
|