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

A diagnostic counter id. More...

Public Member Functions

 DiagnosticCounterId ()
 Creates an empty id. More...
 
 DiagnosticCounterId (const std::string &name)
 Creates an id from name. More...
 
 DiagnosticCounterId (uint64_t value)
 Creates an id from value. More...
 
const std::string & name () const
 Gets the id name. More...
 
uint64_t value () const
 Gets the id value. More...
 

Static Public Attributes

static constexpr auto Max_Counter_Name_Size = 13u
 Maximum counter name size. More...
 

Private Attributes

std::string m_name
 
uint64_t m_value
 

Detailed Description

A diagnostic counter id.

Constructor & Destructor Documentation

◆ DiagnosticCounterId() [1/3]

catapult::utils::DiagnosticCounterId::DiagnosticCounterId ( )

Creates an empty id.

◆ DiagnosticCounterId() [2/3]

catapult::utils::DiagnosticCounterId::DiagnosticCounterId ( const std::string &  name)
explicit

Creates an id from name.

◆ DiagnosticCounterId() [3/3]

catapult::utils::DiagnosticCounterId::DiagnosticCounterId ( uint64_t  value)
explicit

Creates an id from value.

Here is the call graph for this function:

Member Function Documentation

◆ name()

const std::string& catapult::utils::DiagnosticCounterId::name ( ) const
inline

Gets the id name.

◆ value()

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

Gets the id value.

Here is the caller graph for this function:

Member Data Documentation

◆ m_name

std::string catapult::utils::DiagnosticCounterId::m_name
private

◆ m_value

uint64_t catapult::utils::DiagnosticCounterId::m_value
private

◆ Max_Counter_Name_Size

constexpr auto catapult::utils::DiagnosticCounterId::Max_Counter_Name_Size = 13u
staticconstexpr

Maximum counter name size.


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