Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RNTupleCalcPerf Class Reference

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)
void Enable ()
const std::string & GetDescription () const
const std::string & GetName () const
const std::string & GetUnit () const
double GetValue () const
std::int64_t GetValueAsInt () const override
std::string GetValueAsString () const override
bool IsEnabled () const
std::string ToString () const

Private Attributes

std::string fDescription
const MetricFunc_t fFunc
bool fIsEnabled = false
RNTupleMetricsfMetrics
std::string fName
std::string fUnit

Static Private Attributes

static constexpr char kFieldSeperator = '|'
 Symbol to split name, unit, description, and value when printing.

#include <ROOT/RNTupleMetrics.hxx>

Inheritance diagram for RNTupleCalcPerf:
ROOT::Experimental::Detail::RNTuplePerfCounter

Member Typedef Documentation

◆ MetricFunc_t

Definition at line 171 of file RNTupleMetrics.hxx.

Constructor & Destructor Documentation

◆ RNTupleCalcPerf()

ROOT::Experimental::Detail::RNTupleCalcPerf::RNTupleCalcPerf ( const std::string & name,
const std::string & unit,
const std::string & desc,
RNTupleMetrics & metrics,
MetricFunc_t && func )
inline

Definition at line 178 of file RNTupleMetrics.hxx.

Member Function Documentation

◆ Enable()

void ROOT::Experimental::Detail::RNTuplePerfCounter::Enable ( )
inlineinherited

Definition at line 65 of file RNTupleMetrics.hxx.

◆ GetDescription()

const std::string & ROOT::Experimental::Detail::RNTuplePerfCounter::GetDescription ( ) const
inlineinherited

Definition at line 68 of file RNTupleMetrics.hxx.

◆ GetName()

const std::string & ROOT::Experimental::Detail::RNTuplePerfCounter::GetName ( ) const
inlineinherited

Definition at line 67 of file RNTupleMetrics.hxx.

◆ GetUnit()

const std::string & ROOT::Experimental::Detail::RNTuplePerfCounter::GetUnit ( ) const
inlineinherited

Definition at line 69 of file RNTupleMetrics.hxx.

◆ GetValue()

◆ GetValueAsInt()

std::int64_t ROOT::Experimental::Detail::RNTupleCalcPerf::GetValueAsInt ( ) const
inlineoverridevirtual

◆ GetValueAsString()

std::string ROOT::Experimental::Detail::RNTupleCalcPerf::GetValueAsString ( ) const
inlineoverridevirtual

◆ IsEnabled()

bool ROOT::Experimental::Detail::RNTuplePerfCounter::IsEnabled ( ) const
inlineinherited

Definition at line 66 of file RNTupleMetrics.hxx.

◆ ToString()

std::string ROOT::Experimental::Detail::RNTuplePerfCounter::ToString ( ) const
inherited

Definition at line 25 of file RNTupleMetrics.cxx.

Member Data Documentation

◆ fDescription

std::string ROOT::Experimental::Detail::RNTuplePerfCounter::fDescription
privateinherited

Definition at line 58 of file RNTupleMetrics.hxx.

◆ fFunc

◆ fIsEnabled

bool ROOT::Experimental::Detail::RNTuplePerfCounter::fIsEnabled = false
privateinherited

Definition at line 59 of file RNTupleMetrics.hxx.

◆ fMetrics

◆ fName

std::string ROOT::Experimental::Detail::RNTuplePerfCounter::fName
privateinherited

Definition at line 56 of file RNTupleMetrics.hxx.

◆ fUnit

std::string ROOT::Experimental::Detail::RNTuplePerfCounter::fUnit
privateinherited

Definition at line 57 of file RNTupleMetrics.hxx.

◆ kFieldSeperator

char ROOT::Experimental::Detail::RNTuplePerfCounter::kFieldSeperator = '|'
staticconstexprprivateinherited

Symbol to split name, unit, description, and value when printing.

Definition at line 54 of file RNTupleMetrics.hxx.


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