|
Microsimulation API
|
SimpleReport class for collecting data for homogeneous fields of type T with string names. More...
#include <microsimulation.h>

Public Types | |
| typedef map< string, vector< T > > | Map |
| Map typedef for a map of strings to vector<T> More... | |
Public Member Functions | |
| void | record (string field, T value) |
| record adds a value for a given field into the SimpleReport More... | |
| void | revise (string field, T value) |
| revise changes the last value in a given field. Reminder: std::map::operator[] creates an element for a key if it does not exist. More... | |
| void | clear () |
| clear the report data More... | |
| SEXP | wrap () |
| wrap the report as a DataFrame or a List More... | |
| void | append (SimpleReport< T > &obj) |
| append another SimpleReport, which is useful for aggregating multiple reports. More... | |
Public Attributes | |
| Map | _data |
| _data class member of a map from strings to vector<T>. More... | |
SimpleReport class for collecting data for homogeneous fields of type T with string names.
Definition at line 1099 of file microsimulation.h.
| typedef map<string,vector<T> > ssim::SimpleReport< T >::Map |
Map typedef for a map of strings to vector<T>
Definition at line 1104 of file microsimulation.h.
|
inline |
append another SimpleReport, which is useful for aggregating multiple reports.
Definition at line 1133 of file microsimulation.h.
|
inline |
clear the report data
Definition at line 1123 of file microsimulation.h.
|
inline |
record adds a value for a given field into the SimpleReport
Definition at line 1108 of file microsimulation.h.
|
inline |
revise changes the last value in a given field. Reminder: std::map::operator[] creates an element for a key if it does not exist.
Definition at line 1115 of file microsimulation.h.
|
inline |
wrap the report as a DataFrame or a List
Definition at line 1127 of file microsimulation.h.
| Map ssim::SimpleReport< T >::_data |
_data class member of a map from strings to vector<T>.
Definition at line 1141 of file microsimulation.h.
1.8.17