#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) 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 |
|
|
|
|
|
|
|
||||||||||||
|
Find the score value for an id.
Implements ScoreAccumulator. |
|
|
Implements ScoreAccumulator. |
|
||||||||||||
|
Increase the score value of an id, add the id if it doesn't exist.
Implements ScoreAccumulator. |
|
||||||||||||
|
Implements ScoreAccumulator. |
|
|
Reset all entries to zero.
Implements ScoreAccumulator. |
|
||||||||||||
|
Set the score value of an id, add the id if it doesn't exist.
Implements ScoreAccumulator. |
|
|
Iteration support.
Implements ScoreAccumulator. |
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18