#include <Counter.hpp>
Inheritance diagram for ArrayCounter:
Public Methods | |
ArrayCounter (int size) | |
virtual | ~ArrayCounter () |
virtual double | count (int eventIndex) |
return the count of an event. | |
virtual double | sum () |
return the sum of all counts. | |
virtual void | incCount (int eventIndex,double count) |
virtual void | setCount (int eventIndex,double count) |
virtual void | startIteration () |
iteration over non-zero counts. | |
virtual bool | hasMore () |
virtual void | nextCount (int &eventIndex,double &count) |
Protected Attributes | |
T* | ct |
int | sz |
T | total |
int | pos |
|
|
|
|
|
return the count of an event.
Reimplemented from Counter. |
|
Reimplemented from Counter. |
|
Reimplemented from ModifiableCounter. |
|
Reimplemented from Counter. |
|
Reimplemented from ModifiableCounter. |
|
iteration over non-zero counts.
Reimplemented from Counter. |
|
return the sum of all counts.
Reimplemented from Counter. |
|
|
|
|
|
|
|
|