Tomographer
v1.0a
Tomographer C++ Framework Documentation
|
A simple MHRWStatsCollector interface which combines several stats collectors. More...
#include <tomographer/mhrw.h>
Public Types | |
typedef std::tuple< MHRWStatsCollectors &...> | MHRWStatsCollectorsRefTupleType |
typedef std::tuple< MHRWStatsCollectors...> | MHRWStatsCollectorsTupleType |
Public Member Functions | |
MultipleMHRWStatsCollectors (MHRWStatsCollectors &...statscollectors_) | |
template<int I> | |
const std::tuple_element< I, MHRWStatsCollectorsTupleType >::type & | getStatsCollector () |
Static Public Attributes | |
static constexpr int | NumStatColl = sizeof...(MHRWStatsCollectors) |
The number of stats collectors we are tracking. | |
A simple MHRWStatsCollector interface which combines several stats collectors.
A MHRandomWalk object expects one instance of a MHRWStatsCollector (see MHRWStatsCollector Interface); in case you wish to provide several stats collectors, you should use a MultipleMHRWStatsCollectors instance which combines all your preferred stats collectors.
The obscure variadic templating of this class should not scare you—it's relatively straightforward to use:
The number of stat collectors that were defined is accessible through the constant enumeration value NumStatColl.