OgreHaptics::AtomicScalar< T > Class Template Reference

Structure which has built in atomic arithmetic operators which can be performed on 32-bit variables (e.g. More...

#include <OgreHapticsAtomic.h>

List of all members.

Public Member Functions

 AtomicScalar ()
 AtomicScalar (const T &val)
 AtomicScalar (const AtomicScalar< T > &rhs)
void operator= (const AtomicScalar< T > &rhs)
operator+= (T val)
operator-= (T val)
operator++ (void)
operator++ (int)
operator-- (void)
operator-- (int)
void set (T rhs)
get (void) const
bool compareAndSwap (T oldValue, T newValue)

Protected Attributes

volatile T value


Detailed Description

template<typename T>
class OgreHaptics::AtomicScalar< T >

Structure which has built in atomic arithmetic operators which can be performed on 32-bit variables (e.g.

int, long and their unsigned counterparts).

Definition at line 204 of file OgreHapticsAtomic.h.


Constructor & Destructor Documentation

template<typename T>
OgreHaptics::AtomicScalar< T >::AtomicScalar (  ) 

Definition at line 209 of file OgreHapticsAtomic.h.

template<typename T>
OgreHaptics::AtomicScalar< T >::AtomicScalar ( const T &  val  ) 

Definition at line 211 of file OgreHapticsAtomic.h.

template<typename T>
OgreHaptics::AtomicScalar< T >::AtomicScalar ( const AtomicScalar< T > &  rhs  ) 

Definition at line 215 of file OgreHapticsAtomic.h.


Member Function Documentation

template<typename T>
void OgreHaptics::AtomicScalar< T >::operator= ( const AtomicScalar< T > &  rhs  ) 

Definition at line 219 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::operator+= ( val  ) 

Definition at line 224 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::operator-= ( val  ) 

Definition at line 229 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::operator++ ( void   ) 

Definition at line 234 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::operator++ ( int   ) 

Definition at line 239 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::operator-- ( void   ) 

Definition at line 244 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::operator-- ( int   ) 

Definition at line 249 of file OgreHapticsAtomic.h.

template<typename T>
void OgreHaptics::AtomicScalar< T >::set ( rhs  ) 

Definition at line 254 of file OgreHapticsAtomic.h.

template<typename T>
T OgreHaptics::AtomicScalar< T >::get ( void   )  const

template<typename T>
bool OgreHaptics::AtomicScalar< T >::compareAndSwap ( oldValue,
newValue 
)

Definition at line 264 of file OgreHapticsAtomic.h.


Member Data Documentation

template<typename T>
volatile T OgreHaptics::AtomicScalar< T >::value [protected]


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

Last modified Tue Jan 6 22:31:25 2009