libqi-api  2.0.6.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
qi::AtomicBase< T > Struct Template Reference

#include <atomic.hpp>

List of all members.

Public Member Functions

operator++ ()
operator-- ()
AtomicBase< T > & operator= (T value)
bool setIfEquals (T testValue, T setValue)
swap (T value)
operator* () const
 BOOST_STATIC_ASSERT_MSG (sizeof(T)==sizeof(int),"qi::Atomic is only supprted for int-like types")

Public Attributes

volatile T _value

Detailed Description

template<typename T>
struct qi::AtomicBase< T >

Definition at line 54 of file atomic.hpp.


Member Function Documentation

template<typename T>
qi::AtomicBase< T >::BOOST_STATIC_ASSERT_MSG ( sizeof(T)  = =sizeof(int),
"qi::Atomic is only supprted for int-like types"   
)
template<typename T>
T qi::AtomicBase< T >::operator* ( ) const [inline]

Definition at line 70 of file atomic.hpp.

template<typename T>
T qi::AtomicBase< T >::operator++ ( ) [inline]
template<typename T>
T qi::AtomicBase< T >::operator-- ( ) [inline]
template<typename T>
AtomicBase<T>& qi::AtomicBase< T >::operator= ( value) [inline]
template<typename T>
bool qi::AtomicBase< T >::setIfEquals ( testValue,
setValue 
) [inline]

If value is testValue, replace it with setValue.

Returns:
true if swap was performed
template<typename T>
T qi::AtomicBase< T >::swap ( value) [inline]

Member Data Documentation

template<typename T>
volatile T qi::AtomicBase< T >::_value

Definition at line 84 of file atomic.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines