CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::DiagnosticCounter Class Reference

A diagnostic counter. More...

Collaboration diagram for catapult::utils::DiagnosticCounter:

Public Member Functions

 DiagnosticCounter (const DiagnosticCounterId &id, const supplier< uint64_t > &supplier)
 Creates a counter around id and supplier. More...
 
const DiagnosticCounterIdid () const
 Gets the id. More...
 
uint64_t value () const
 Gets the current value. More...
 

Private Attributes

DiagnosticCounterId m_id
 
supplier< uint64_t > m_supplier
 

Detailed Description

A diagnostic counter.

Constructor & Destructor Documentation

◆ DiagnosticCounter()

catapult::utils::DiagnosticCounter::DiagnosticCounter ( const DiagnosticCounterId id,
const supplier< uint64_t > &  supplier 
)
inline

Creates a counter around id and supplier.

Member Function Documentation

◆ id()

const DiagnosticCounterId& catapult::utils::DiagnosticCounter::id ( ) const
inline

Gets the id.

◆ value()

uint64_t catapult::utils::DiagnosticCounter::value ( ) const
inline

Gets the current value.

Member Data Documentation

◆ m_id

DiagnosticCounterId catapult::utils::DiagnosticCounter::m_id
private

◆ m_supplier

supplier<uint64_t> catapult::utils::DiagnosticCounter::m_supplier
private

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