#include <Counter.hpp>
Inheritance diagram for ArrayCounter< T >:

Public Methods | |
| 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 Counter. |
|
|||||||||
|
Implements Counter. |
|
||||||||||||||||
|
Implements ModifiableCounter. |
|
||||||||||||||||
|
Implements Counter. |
|
||||||||||||||||
|
Implements ModifiableCounter. |
|
|||||||||
|
iteration over non-zero counts
Implements Counter. |
|
|||||||||
|
return the sum of all counts
Implements Counter. |
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.2.18