Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Detail::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)
 
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
 
RNTupleMetricsfMetrics
 

#include <ROOT/RNTupleMetrics.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RNTupleCalcPerf:
[legend]

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

◆ GetValue()

double ROOT::Experimental::Detail::RNTupleCalcPerf::GetValue ( ) const
inline

Definition at line 184 of file RNTupleMetrics.hxx.

◆ GetValueAsInt()

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

◆ GetValueAsString()

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

Member Data Documentation

◆ fFunc

const MetricFunc_t ROOT::Experimental::Detail::RNTupleCalcPerf::fFunc
private

Definition at line 175 of file RNTupleMetrics.hxx.

◆ fMetrics

RNTupleMetrics& ROOT::Experimental::Detail::RNTupleCalcPerf::fMetrics
private

Definition at line 174 of file RNTupleMetrics.hxx.

Libraries for ROOT::Experimental::Detail::RNTupleCalcPerf:

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