fesa-core-gsi  5.0.1
fesaGSI::AtomicCMXMetric< T, CmxType > Class Template Reference

#include <AtomicCMXMetric.h>

Inherits fesaGSI::CMXMetricBase< ValueType, CmxType >.

Public Member Functions

 AtomicCMXMetric (boost::atomic< T > &value, CmxType &metric)
 
- Public Member Functions inherited from fesaGSI::CMXMetricBase< ValueType, CmxType >
template<typename T >
get () const
 

Detailed Description

template<typename T, typename CmxType>
class fesaGSI::AtomicCMXMetric< T, CmxType >

This class represents a CMX metric which monitors a boost::atomic<T> value. A reference to the monitored value is kept. As such, the monitored variable must live longer than the instance of this object.

Constructor & Destructor Documentation

template<typename T , typename CmxType >
fesaGSI::AtomicCMXMetric< T, CmxType >::AtomicCMXMetric ( boost::atomic< T > &  value,
CmxType &  metric 
)
inline

Creates a metric which will monitor the given value. A reference to the monitored value is kept. As such, the monitored variable must live longer than this object.

Parameters
valuereference to the value to be monitored
metricassociated CMX metric. This object is copied.

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