CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
evf::ContainableAtomic< T > Struct Template Reference

#include <FastMonitoringService.h>

Public Member Functions

 ContainableAtomic ()
 
 ContainableAtomic (T iValue)
 
 ContainableAtomic (ContainableAtomic< T > const &iOther)
 
 operator T ()
 
ContainableAtomic< T > & operator= (const void *iValue)
 

Public Attributes

std::atomic< Tm_value
 

Detailed Description

template<typename T>
struct evf::ContainableAtomic< T >

Definition at line 56 of file FastMonitoringService.h.

Constructor & Destructor Documentation

template<typename T>
evf::ContainableAtomic< T >::ContainableAtomic ( )
inline

Definition at line 57 of file FastMonitoringService.h.

57 : m_value{} {}
template<typename T>
evf::ContainableAtomic< T >::ContainableAtomic ( T  iValue)
inline

Definition at line 58 of file FastMonitoringService.h.

58 : m_value(iValue) {}
template<typename T>
evf::ContainableAtomic< T >::ContainableAtomic ( ContainableAtomic< T > const &  iOther)
inline

Definition at line 59 of file FastMonitoringService.h.

59 : m_value(iOther.m_value.load()) {}

Member Function Documentation

template<typename T>
evf::ContainableAtomic< T >::operator T ( )
inline

Definition at line 64 of file FastMonitoringService.h.

64 { return m_value.load(std::memory_order_relaxed); }
template<typename T>
ContainableAtomic<T>& evf::ContainableAtomic< T >::operator= ( const void *  iValue)
inline

Definition at line 60 of file FastMonitoringService.h.

60  {
61  m_value.store(iValue, std::memory_order_relaxed);
62  return *this;
63  }

Member Data Documentation

template<typename T>
std::atomic<T> evf::ContainableAtomic< T >::m_value

Definition at line 66 of file FastMonitoringService.h.