10 namespace statistics {
19 T&
get(
const std::string& name) {
20 auto& ptr =
mStatistics.emplace_back(std::make_unique<T>());
22 return static_cast<T&
>(*ptr);
33 auto&
get(
const std::string& name) {
carl is the main namespace for the library.
auto & get(const std::string &name)
Base class that implements a singleton.
static StatisticsCollector & getInstance()
Returns the single instance of this class by reference.
T & get(const std::string &name)
std::vector< std::unique_ptr< Statistics > > mStatistics
const auto & statistics() const