Base class for the StatRecorder's, declares the interface to record stat values.
More...
#include <statrecorder.h>
|
std::string | _title |
| The title of the stat recorder, longer and more explicite than the name. More...
|
|
std::string | _name |
| Name of the stat, should be short (20 char) and R compliant (no '-', '+', ' ') More...
|
|
unsigned int | _arg1 |
| A argument to be passed to one of the function variable stored in the StatRecorder structure. More...
|
|
unsigned int | _arg2 |
|
age_t | _age |
| The age class for which this stat applies. More...
|
|
Base class for the StatRecorder's, declares the interface to record stat values.
◆ StatRecBase()
StatRecBase::StatRecBase |
( |
| ) |
|
|
inline |
unsigned int _arg2
Definition: statrecorder.h:47
age_t _age
The age class for which this stat applies.
Definition: statrecorder.h:49
std::string _title
The title of the stat recorder, longer and more explicite than the name.
Definition: statrecorder.h:42
std::string _name
Name of the stat, should be short (20 char) and R compliant (no '-', '+', ' ')
Definition: statrecorder.h:44
unsigned int _arg1
A argument to be passed to one of the function variable stored in the StatRecorder structure.
Definition: statrecorder.h:46
#define ALL
All ages age class flag.
Definition: types.h:56
◆ ~StatRecBase()
virtual StatRecBase::~StatRecBase |
( |
| ) |
|
|
inlinevirtual |
◆ getAge()
age_t StatRecBase::getAge |
( |
| ) |
|
|
inline |
◆ getArg1()
unsigned int StatRecBase::getArg1 |
( |
| ) |
|
|
inline |
◆ getArg2()
unsigned int StatRecBase::getArg2 |
( |
| ) |
|
|
inline |
◆ getName()
std::string StatRecBase::getName |
( |
| ) |
|
|
inline |
◆ getTitle()
std::string StatRecBase::getTitle |
( |
| ) |
|
|
inline |
◆ set()
void StatRecBase::set |
( |
std::string |
T, |
|
|
std::string |
N, |
|
|
age_t |
AGE, |
|
|
unsigned int |
ARG1, |
|
|
unsigned int |
ARG2 |
|
) |
| |
|
inline |
Sets the recorder attributes.
- Parameters
-
T | the stat title (not printed in output) |
N | the stat name (headers in the output file) |
AGE | the age class for which the stat will be recorded |
ARG1 | the argument to pass to the S function |
ARG2 | the argument to pass to the S function |
References _age, _arg1, _arg2, _name, and _title.
Referenced by StatRecorder< S >::set().
◆ setName()
void StatRecBase::setName |
( |
std::string |
N | ) |
|
|
inline |
◆ setVal()
virtual double StatRecBase::setVal |
( |
age_t |
AGE | ) |
|
|
pure virtual |
◆ _age
The age class for which this stat applies.
Referenced by getAge(), and set().
◆ _arg1
unsigned int StatRecBase::_arg1 |
|
private |
◆ _arg2
unsigned int StatRecBase::_arg2 |
|
private |
◆ _name
std::string StatRecBase::_name |
|
private |
Name of the stat, should be short (20 char) and R compliant (no '-', '+', ' ')
Referenced by getName(), set(), and setName().
◆ _title
std::string StatRecBase::_title |
|
private |
The title of the stat recorder, longer and more explicite than the name.
Referenced by getTitle(), and set().
The documentation for this class was generated from the following file: