CMS 3D CMS Logo

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

#include <FastMonitoringThread.h>

Public Member Functions

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

Public Attributes

std::atomic< Tm_value
 

Detailed Description

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

Definition at line 27 of file FastMonitoringThread.h.

Constructor & Destructor Documentation

◆ ContainableAtomic() [1/3]

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

Definition at line 28 of file FastMonitoringThread.h.

28 : m_value{} {}

◆ ContainableAtomic() [2/3]

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

Definition at line 29 of file FastMonitoringThread.h.

29 : m_value(iValue) {}

◆ ContainableAtomic() [3/3]

template<typename T>
evf::ContainableAtomic< T >::ContainableAtomic ( ContainableAtomic< T > const &  iOther)
inline

Definition at line 30 of file FastMonitoringThread.h.

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

Member Function Documentation

◆ operator T()

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

Definition at line 35 of file FastMonitoringThread.h.

35 { return m_value.load(std::memory_order_relaxed); }

References evf::ContainableAtomic< T >::m_value.

◆ operator=()

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

Definition at line 31 of file FastMonitoringThread.h.

31  {
32  m_value.store(iValue, std::memory_order_relaxed);
33  return *this;
34  }

References evf::ContainableAtomic< T >::m_value.

Member Data Documentation

◆ m_value

template<typename T>
std::atomic<T> evf::ContainableAtomic< T >::m_value
evf::ContainableAtomic::m_value
std::atomic< T > m_value
Definition: FastMonitoringThread.h:37