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

#include <metricsbackend.h>

+ Inheritance diagram for MetricCounter:

Public Member Functions

 MetricCounter ()=default
 
virtual ~MetricCounter ()
 
virtual void increment (double number=1.0)=0
 
virtual double get () const =0
 

Constructor & Destructor Documentation

◆ MetricCounter()

MetricCounter::MetricCounter ( )
default

◆ ~MetricCounter()

virtual MetricCounter::~MetricCounter ( )
inlinevirtual

Member Function Documentation

◆ get()

virtual double MetricCounter::get ( ) const
pure virtual

Implemented in SimpleMetricCounter.

Referenced by Server::AsyncRunStep(), Server::getStatusString(), and Server::getUptime().

+ Here is the caller graph for this function:

◆ increment()

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

Implemented in SimpleMetricCounter.

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

+ Here is the caller graph for this function:

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