EMANE
1.2.1
|
Utility class to make a two column statistic table where the first column is the table key and the second column is a count of key instances. More...
#include <statistichistogramtable.h>
Public Member Functions | |
StatisticHistogramTable (StatisticRegistrar ®istrar, const std::string &sTableName, const StatisticTableLabels &labels, const std::string &sDescription="") | |
void | increment (const Key &key, Counter amount=1) |
Utility class to make a two column statistic table where the first column is the table key and the second column is a count of key instances.
Definition at line 53 of file statistichistogramtable.h.
EMANE::Utils::StatisticHistogramTable< Key, Counter >::StatisticHistogramTable | ( | StatisticRegistrar & | registrar, |
const std::string & | sTableName, | ||
const StatisticTableLabels & | labels, | ||
const std::string & | sDescription = "" |
||
) |
Creates a StatisticHistogramTable table
registrar | StatisticRegistrar reference |
sTableName | Table name |
labels | Table column names |
sDescription | Table description |
RegistrarException | when a error occurs during registration. |
Definition at line 34 of file statistichistogramtable.inl.
void EMANE::Utils::StatisticHistogramTable< Key, Counter >::increment | ( | const Key & | key, |
Counter | amount = 1 |
||
) |
Increments a table key count
key | Table key (row) to increment |
amount | Amount to increment by |
StatisticTableException | when the row key is invalid |
Definition at line 51 of file statistichistogramtable.inl.