cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::metrics::MetricRegistry< T > Class Template Reference

#include <metric_factory.hpp>

Classes

struct  MetricInfo
 

Public Member Functions

template<typename MetricType >
void register_metric (const std::string &name, const std::string &description)
 
const MetricInfoget_info (const std::string &name) const
 
std::vector< MetricInfolist_metrics () const
 

Static Public Member Functions

static MetricRegistryinstance ()
 

Member Function Documentation

◆ get_info()

template<typename T >
const MetricInfo * toolbox::metrics::MetricRegistry< T >::get_info ( const std::string &  name) const
inline

◆ instance()

template<typename T >
static MetricRegistry & toolbox::metrics::MetricRegistry< T >::instance ( )
inlinestatic

◆ list_metrics()

template<typename T >
std::vector< MetricInfo > toolbox::metrics::MetricRegistry< T >::list_metrics ( ) const
inline

◆ register_metric()

template<typename T >
template<typename MetricType >
void toolbox::metrics::MetricRegistry< T >::register_metric ( const std::string &  name,
const std::string &  description 
)
inline

The documentation for this class was generated from the following file: