Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MetricGauge Class Referenceabstract

#include <metricsbackend.h>

+ Inheritance diagram for MetricGauge:

Public Member Functions

 MetricGauge ()=default
 
virtual ~MetricGauge ()
 
virtual void increment (double number=1.0)=0
 
virtual void decrement (double number=1.0)=0
 
virtual void set (double number)=0
 
virtual double get () const =0
 

Constructor & Destructor Documentation

◆ MetricGauge()

MetricGauge::MetricGauge ( )
default

◆ ~MetricGauge()

virtual MetricGauge::~MetricGauge ( )
inlinevirtual

Member Function Documentation

◆ decrement()

virtual void MetricGauge::decrement ( double number = 1.0)
pure virtual

Implemented in SimpleMetricGauge.

Referenced by Server::AsyncRunStep().

+ Here is the caller graph for this function:

◆ get()

virtual double MetricGauge::get ( ) const
pure virtual

Implemented in SimpleMetricGauge.

Referenced by Server::AsyncRunStep().

+ Here is the caller graph for this function:

◆ increment()

virtual void MetricGauge::increment ( double number = 1.0)
pure virtual

Implemented in SimpleMetricGauge.

Referenced by Server::AsyncRunStep().

+ Here is the caller graph for this function:

◆ set()

virtual void MetricGauge::set ( double number)
pure virtual

Implemented in SimpleMetricGauge.

Referenced by Server::Server(), Server::AsyncRunStep(), ServerMap::reportMetrics(), and ServerEnvironment::step().

+ Here is the caller graph for this function:

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