Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
SimpleMetricGauge Class Reference
+ Inheritance diagram for SimpleMetricGauge:
+ Collaboration diagram for SimpleMetricGauge:

Public Member Functions

 SimpleMetricGauge ()
 
virtual ~SimpleMetricGauge ()
 
void increment (double number) override
 
void decrement (double number) override
 
void set (double number) override
 
double get () const override
 
- Public Member Functions inherited from MetricGauge
 MetricGauge ()=default
 
virtual ~MetricGauge ()
 

Private Attributes

std::mutex m_mutex
 
double m_gauge
 

Constructor & Destructor Documentation

◆ SimpleMetricGauge()

SimpleMetricGauge::SimpleMetricGauge ( )
inline

◆ ~SimpleMetricGauge()

virtual SimpleMetricGauge::~SimpleMetricGauge ( )
inlinevirtual

Member Function Documentation

◆ decrement()

void SimpleMetricGauge::decrement ( double number)
inlineoverridevirtual

Implements MetricGauge.

References m_gauge, and m_mutex.

◆ get()

double SimpleMetricGauge::get ( ) const
inlineoverridevirtual

Implements MetricGauge.

References m_gauge, and m_mutex.

◆ increment()

void SimpleMetricGauge::increment ( double number)
inlineoverridevirtual

Implements MetricGauge.

References m_gauge, and m_mutex.

◆ set()

void SimpleMetricGauge::set ( double number)
inlineoverridevirtual

Implements MetricGauge.

References m_gauge, and m_mutex.

Member Data Documentation

◆ m_gauge

double SimpleMetricGauge::m_gauge
private

Referenced by decrement(), get(), increment(), and set().

◆ m_mutex

std::mutex SimpleMetricGauge::m_mutex
mutableprivate

Referenced by decrement(), get(), increment(), and set().


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