A metric element that computes its floating point value from other counters.
Definition at line 169 of file RNTupleMetrics.hxx.
Public Types | |
using | MetricFunc_t = std::function< std::pair< bool, double >(const RNTupleMetrics &)> |
Public Member Functions | |
RNTupleCalcPerf (const std::string &name, const std::string &unit, const std::string &desc, RNTupleMetrics &metrics, MetricFunc_t &&func) | |
double | GetValue () const |
std::int64_t | GetValueAsInt () const override |
std::string | GetValueAsString () const override |
Public Member Functions inherited from ROOT::Experimental::Detail::RNTuplePerfCounter | |
RNTuplePerfCounter (const std::string &name, const std::string &unit, const std::string &desc) | |
virtual | ~RNTuplePerfCounter () |
void | Enable () |
const std::string & | GetDescription () const |
const std::string & | GetName () const |
const std::string & | GetUnit () const |
bool | IsEnabled () const |
std::string | ToString () const |
Private Attributes | |
const MetricFunc_t | fFunc |
RNTupleMetrics & | fMetrics |
#include <ROOT/RNTupleMetrics.hxx>
using ROOT::Experimental::Detail::RNTupleCalcPerf::MetricFunc_t = std::function<std::pair<bool, double>(const RNTupleMetrics &)> |
Definition at line 171 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 178 of file RNTupleMetrics.hxx.
|
inline |
Definition at line 184 of file RNTupleMetrics.hxx.
|
inlineoverridevirtual |
Implements ROOT::Experimental::Detail::RNTuplePerfCounter.
Definition at line 191 of file RNTupleMetrics.hxx.
|
inlineoverridevirtual |
Implements ROOT::Experimental::Detail::RNTuplePerfCounter.
Definition at line 195 of file RNTupleMetrics.hxx.
|
private |
Definition at line 175 of file RNTupleMetrics.hxx.
|
private |
Definition at line 174 of file RNTupleMetrics.hxx.