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