#include <Statistics.h>
Public Member Functions | |
| Statistics () | |
| ~Statistics () | |
| void | print (Inform &, long(*filter)(long)=defaultFilter) |
| StatisticsData * | add (const char *description, long initval=0) |
This interface is extensible ... you can add new types of statistics by calling 'add(description, initval)' with a string description of the stat, and the initial value it should have.
The StatisticsData class is a helper that contains the description and data.
| Pooma::Statistics::Statistics | ( | ) |
| Pooma::Statistics::~Statistics | ( | ) |
| void Pooma::Statistics::print | ( | Inform & | , | |
| long(*)(long) | filter = defaultFilter | |||
| ) |
| StatisticsData* Pooma::Statistics::add | ( | const char * | description, | |
| long | initval = 0 | |||
| ) | [inline] |
1.5.9