#include <map>
#include <vector>
#include <string>
Go to the source code of this file.
|
#define | ADD_STAT(n, ...) n(this, # n, __VA_ARGS__) |
| Convenience macro to add a stat to a statistics group. More...
|
|
◆ ADD_STAT
#define ADD_STAT |
( |
|
n, |
|
|
|
... |
|
) |
| n(this, # n, __VA_ARGS__) |
Convenience macro to add a stat to a statistics group.
This macro is used to add a stat to a Stats::Group in the initilization list in the Group's constructor. The macro automatically assigns the stat to the current group and gives it the same name as in the class. For example:
{
:
ADD_STAT(scalar0,
"Description of scalar0"),
scalar1(this, "scalar1", "Description of scalar1")
{
}
};
Definition at line 67 of file group.hh.