Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Experimental::Detail::RNTuplePlainCounter Class Reference

A non thread-safe integral performance counter.

Definition at line 84 of file RNTupleMetrics.hxx.

Public Member Functions

 RNTuplePlainCounter (const std::string &name, const std::string &unit, const std::string &desc)
R__ALWAYS_INLINE void Add (int64_t delta)
R__ALWAYS_INLINE void Dec ()
void Enable ()
const std::string & GetDescription () const
const std::string & GetName () const
const std::string & GetUnit () const
R__ALWAYS_INLINE int64_t GetValue () const
std::int64_t GetValueAsInt () const override
std::string GetValueAsString () const override
R__ALWAYS_INLINE void Inc ()
bool IsEnabled () const
R__ALWAYS_INLINE void SetValue (int64_t val)
std::string ToString () const

Private Attributes

std::int64_t fCounter = 0
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.

#include <ROOT/RNTupleMetrics.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RNTuplePlainCounter:
ROOT::Experimental::Detail::RNTuplePerfCounter ROOT::Experimental::Detail::RNTupleTickCounter< ROOT::Experimental::Detail::RNTuplePlainCounter >

Constructor & Destructor Documentation

◆ RNTuplePlainCounter()

ROOT::Experimental::Detail::RNTuplePlainCounter::RNTuplePlainCounter ( const std::string & name,
const std::string & unit,
const std::string & desc )
inline

Definition at line 89 of file RNTupleMetrics.hxx.

Member Function Documentation

◆ Add()

R__ALWAYS_INLINE void ROOT::Experimental::Detail::RNTuplePlainCounter::Add ( int64_t delta)
inline

Definition at line 96 of file RNTupleMetrics.hxx.

◆ Dec()

R__ALWAYS_INLINE void ROOT::Experimental::Detail::RNTuplePlainCounter::Dec ( )
inline

Definition at line 95 of file RNTupleMetrics.hxx.

◆ 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()

R__ALWAYS_INLINE int64_t ROOT::Experimental::Detail::RNTuplePlainCounter::GetValue ( ) const
inline

Definition at line 97 of file RNTupleMetrics.hxx.

◆ GetValueAsInt()

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

◆ GetValueAsString()

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

◆ Inc()

R__ALWAYS_INLINE void ROOT::Experimental::Detail::RNTuplePlainCounter::Inc ( )
inline

Definition at line 94 of file RNTupleMetrics.hxx.

◆ IsEnabled()

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

Definition at line 66 of file RNTupleMetrics.hxx.

◆ SetValue()

R__ALWAYS_INLINE void ROOT::Experimental::Detail::RNTuplePlainCounter::SetValue ( int64_t val)
inline

Definition at line 98 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

◆ fCounter

std::int64_t ROOT::Experimental::Detail::RNTuplePlainCounter::fCounter = 0
private

Definition at line 86 of file RNTupleMetrics.hxx.

◆ fDescription

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

Definition at line 58 of file RNTupleMetrics.hxx.

◆ fIsEnabled

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

Definition at line 59 of file RNTupleMetrics.hxx.

◆ 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: