libpressio 0.93.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pressio_metrics Struct Reference

#include <metrics.h>

Public Member Functions

 pressio_metrics (std::unique_ptr< libpressio_metrics_plugin > &&metrics)
 
 pressio_metrics (std::shared_ptr< libpressio_metrics_plugin > &&metrics)
 
 pressio_metrics ()=default
 
 pressio_metrics (pressio_metrics const &metrics)
 
pressio_metricsoperator= (pressio_metrics const &metrics)
 
 pressio_metrics (pressio_metrics &&metrics)=default
 
pressio_metricsoperator= (pressio_metrics &&metrics)=default
 
libpressio_metrics_pluginoperator-> () const noexcept
 
libpressio_metrics_pluginoperator* () const noexcept
 
 operator bool () const
 

Detailed Description

C compatible pointer to metrics_plugins

Constructor & Destructor Documentation

◆ pressio_metrics() [1/5]

pressio_metrics::pressio_metrics ( std::unique_ptr< libpressio_metrics_plugin > &&  metrics)
inline

construct a metrics wrapper

◆ pressio_metrics() [2/5]

pressio_metrics::pressio_metrics ( std::shared_ptr< libpressio_metrics_plugin > &&  metrics)
inline

construct a metrics wrapper

◆ pressio_metrics() [3/5]

pressio_metrics::pressio_metrics ( )
default

allow default construction

◆ pressio_metrics() [4/5]

pressio_metrics::pressio_metrics ( pressio_metrics const &  metrics)
inline

copy construct a metric from another pointer

◆ pressio_metrics() [5/5]

pressio_metrics::pressio_metrics ( pressio_metrics &&  metrics)
default

move construct a metric from another pointer

Member Function Documentation

◆ operator bool()

pressio_metrics::operator bool ( ) const
inline

returns true if the pointer is not nullptr

◆ operator*()

libpressio_metrics_plugin & pressio_metrics::operator* ( ) const
inlinenoexcept

allow access to underlying plugin

◆ operator->()

libpressio_metrics_plugin * pressio_metrics::operator-> ( ) const
inlinenoexcept

allow access to underlying plugin

◆ operator=() [1/2]

pressio_metrics & pressio_metrics::operator= ( pressio_metrics &&  metrics)
default

move assigns a metric from another pointer

◆ operator=() [2/2]

pressio_metrics & pressio_metrics::operator= ( pressio_metrics const &  metrics)
inline

move assigns a metric from another pointer


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