Logo ROOT  
Reference Guide
ROOT::Experimental::Detail::RNTuplePerfCounter Class Referenceabstract

A performance counter with a name and a unit, which can be activated on demand.

Derived classes decide on the counter type and implement printing of the value.

Definition at line 65 of file RNTupleMetrics.hxx.

Public Member Functions

 RNTuplePerfCounter (const std::string &name, const std::string &unit, const std::string &desc)
virtual ~RNTuplePerfCounter ()
void Enable ()
std::string GetDescription () const
std::string GetName () const
std::string GetUnit () const
virtual std::int64_t GetValueAsInt () const =0
virtual std::string GetValueAsString () const =0
bool IsEnabled () const
std::string ToString () const

Private Attributes

std::string fDescription
bool fIsEnabled = false
std::string fName
std::string fUnit

Static Private Attributes

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

#include <ROOT/RNTupleMetrics.hxx>

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

Constructor & Destructor Documentation

◆ RNTuplePerfCounter()

ROOT::Experimental::Detail::RNTuplePerfCounter::RNTuplePerfCounter ( const std::string &  name,
const std::string &  unit,
const std::string &  desc 

Definition at line 76 of file RNTupleMetrics.hxx.

◆ ~RNTuplePerfCounter()

ROOT::Experimental::Detail::RNTuplePerfCounter::~RNTuplePerfCounter ( )

Definition at line 22 of file RNTupleMetrics.cxx.

Member Function Documentation

◆ Enable()

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

Definition at line 79 of file RNTupleMetrics.hxx.

◆ GetDescription()

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

Definition at line 82 of file RNTupleMetrics.hxx.

◆ GetName()

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

Definition at line 81 of file RNTupleMetrics.hxx.

◆ GetUnit()

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

Definition at line 83 of file RNTupleMetrics.hxx.

◆ GetValueAsInt()

virtual std::int64_t ROOT::Experimental::Detail::RNTuplePerfCounter::GetValueAsInt ( ) const
pure virtual

◆ GetValueAsString()

virtual std::string ROOT::Experimental::Detail::RNTuplePerfCounter::GetValueAsString ( ) const
pure virtual

◆ IsEnabled()

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

Definition at line 80 of file RNTupleMetrics.hxx.

◆ ToString()

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

Definition at line 26 of file RNTupleMetrics.cxx.

Member Data Documentation

◆ fDescription

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

Definition at line 72 of file RNTupleMetrics.hxx.

◆ fIsEnabled

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

Definition at line 73 of file RNTupleMetrics.hxx.

◆ fName

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

Definition at line 70 of file RNTupleMetrics.hxx.

◆ fUnit

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

Definition at line 71 of file RNTupleMetrics.hxx.

◆ kFieldSeperator

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

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

Definition at line 68 of file RNTupleMetrics.hxx.

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