CatapultServer  v0.5.0.1 (Elephant)
catapult::local::LocalNodeCounterValue Class Reference
Collaboration diagram for catapult::local::LocalNodeCounterValue:

Public Member Functions

 LocalNodeCounterValue (const utils::DiagnosticCounter &counter)
 Creates a counter value from counter. More...
 
const utils::DiagnosticCounterIdid () const
 Gets the counter id. More...
 
uint64_t value () const
 Gets the counter value. More...
 

Private Attributes

utils::DiagnosticCounterId m_id
 
uint64_t m_value
 

Detailed Description

Local node counter value.

Note
This is a constant value unlike utils::DiagnosticCounter.

Constructor & Destructor Documentation

◆ LocalNodeCounterValue()

catapult::local::LocalNodeCounterValue::LocalNodeCounterValue ( const utils::DiagnosticCounter counter)
inlineexplicit

Creates a counter value from counter.

Member Function Documentation

◆ id()

const utils::DiagnosticCounterId& catapult::local::LocalNodeCounterValue::id ( ) const
inline

Gets the counter id.

◆ value()

uint64_t catapult::local::LocalNodeCounterValue::value ( ) const
inline

Gets the counter value.

Member Data Documentation

◆ m_id

utils::DiagnosticCounterId catapult::local::LocalNodeCounterValue::m_id
private

◆ m_value

uint64_t catapult::local::LocalNodeCounterValue::m_value
private

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