prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Public Member Functions | List of all members
prom::MetricState Class Reference

Opaque backend state for a registered family or a labeled child. More...

#include <adapter.hpp>

Inheritance diagram for prom::MetricState:
Inheritance graph
[legend]

Public Member Functions

 MetricState ()=default
 
 MetricState (const MetricState &)=default
 
MetricStateoperator= (const MetricState &)=default
 
 MetricState (MetricState &&)=default
 
MetricStateoperator= (MetricState &&)=default
 
virtual ~MetricState ()=default
 

Detailed Description

Opaque backend state for a registered family or a labeled child.

Backends subclass this to stash whatever they need (a prometheus-cpp Family<T>&, a child reference, ...). prom only ever holds it behind a MetricHandle.

Constructor & Destructor Documentation

◆ MetricState() [1/3]

prom::MetricState::MetricState ( )
default

◆ MetricState() [2/3]

prom::MetricState::MetricState ( const MetricState )
default

◆ MetricState() [3/3]

prom::MetricState::MetricState ( MetricState &&  )
default

◆ ~MetricState()

virtual prom::MetricState::~MetricState ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

MetricState & prom::MetricState::operator= ( const MetricState )
default

◆ operator=() [2/2]

MetricState & prom::MetricState::operator= ( MetricState &&  )
default

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