The Sparta Modeling Framework
|
User-friendly wrapper around a double reference. This is like a std::reference_wrapper that connects one StatisticInstance with somebody else's double in another data structure. It lets SI's write their double data value directly into a contiguous std::vector sitting on top of the report archive system. This is done for improved performance and overall ease of use - a single std::vector<double> vs. individual StatisticInstance's scattered all over. More...
#include <StatisticSnapshot.hpp>
Public Member Functions | |
StatisticSnapshot (double &value) | |
double | takeSnapshot (const double value) |
User-friendly wrapper around a double reference. This is like a std::reference_wrapper that connects one StatisticInstance with somebody else's double in another data structure. It lets SI's write their double data value directly into a contiguous std::vector sitting on top of the report archive system. This is done for improved performance and overall ease of use - a single std::vector<double> vs. individual StatisticInstance's scattered all over.
Definition at line 17 of file StatisticSnapshot.hpp.
|
inlineexplicit |
Definition at line 20 of file StatisticSnapshot.hpp.
|
inline |
Definition at line 24 of file StatisticSnapshot.hpp.