Logo ROOT  
Reference Guide
ROOT::Experimental::Detail::RNTupleAtomicCounter Class Reference

A thread-safe integral performance counter.

Definition at line 125 of file RNTupleMetrics.hxx.

Public Member Functions

 RNTupleAtomicCounter (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 ()
 
R__ALWAYS_INLINE int64_t GetValue () const
 
std::int64_t GetValueAsInt () const override
 
std::string GetValueAsString () const override
 
R__ALWAYS_INLINE void Inc ()
 
R__ALWAYS_INLINE void SetValue (int64_t val)
 
R__ALWAYS_INLINE int64_t XAdd (int64_t delta)
 
- 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 ()
 
std::string GetDescription () const
 
std::string GetName () const
 
std::string GetUnit () const
 
bool IsEnabled () const
 
std::string ToString () const
 

Private Attributes

std::atomic< std::int64_t > fCounter {0}
 

#include <ROOT/RNTupleMetrics.hxx>

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

Constructor & Destructor Documentation

◆ RNTupleAtomicCounter()

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

Definition at line 130 of file RNTupleMetrics.hxx.

Member Function Documentation

◆ Add()

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

Definition at line 146 of file RNTupleMetrics.hxx.

◆ Dec()

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

Definition at line 140 of file RNTupleMetrics.hxx.

◆ GetValue()

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

Definition at line 159 of file RNTupleMetrics.hxx.

◆ GetValueAsInt()

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

◆ GetValueAsString()

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

◆ Inc()

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

Definition at line 134 of file RNTupleMetrics.hxx.

◆ SetValue()

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

Definition at line 166 of file RNTupleMetrics.hxx.

◆ XAdd()

R__ALWAYS_INLINE int64_t ROOT::Experimental::Detail::RNTupleAtomicCounter::XAdd ( int64_t  delta)
inline

Definition at line 152 of file RNTupleMetrics.hxx.

Member Data Documentation

◆ fCounter

std::atomic<std::int64_t> ROOT::Experimental::Detail::RNTupleAtomicCounter::fCounter {0}
private

Definition at line 127 of file RNTupleMetrics.hxx.


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