OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::AtomicObject< T > Class Template Reference

#include <OgreAtomicObject.h>

Public Member Functions

 AtomicObject (const T &initial)
 
 AtomicObject (const AtomicObject< T > &cousin)
 
 AtomicObject ()
 
bool cas (const T &old, const T &nu)
 
get (void) const
 
operator++ (void)
 
operator++ (int)
 
operator+= (const T &add)
 
operator-- (int)
 
operator-= (const T &sub)
 
void operator= (const AtomicObject< T > &cousin)
 
void set (const T &v)
 

Protected Attributes

volatile T mField
 
 OGRE_AUTO_MUTEX
 

Detailed Description

template<class T>
class Ogre::AtomicObject< T >

Definition at line 43 of file OgreAtomicObject.h.

Constructor & Destructor Documentation

template<class T>
Ogre::AtomicObject< T >::AtomicObject ( const T &  initial)
inline

Definition at line 47 of file OgreAtomicObject.h.

template<class T>
Ogre::AtomicObject< T >::AtomicObject ( const AtomicObject< T > &  cousin)
inline

Definition at line 51 of file OgreAtomicObject.h.

template<class T>
Ogre::AtomicObject< T >::AtomicObject ( )
inline

Definition at line 55 of file OgreAtomicObject.h.

Member Function Documentation

template<class T>
bool Ogre::AtomicObject< T >::cas ( const T &  old,
const T &  nu 
)
inline

Definition at line 75 of file OgreAtomicObject.h.

References Ogre::AtomicObject< T >::mField, and OGRE_LOCK_AUTO_MUTEX.

template<class T>
T Ogre::AtomicObject< T >::get ( void  ) const
inline
template<class T>
T Ogre::AtomicObject< T >::operator++ ( void  )
inline

Definition at line 83 of file OgreAtomicObject.h.

References Ogre::AtomicObject< T >::mField, and OGRE_LOCK_AUTO_MUTEX.

template<class T>
T Ogre::AtomicObject< T >::operator++ ( int  )
inline

Definition at line 89 of file OgreAtomicObject.h.

References Ogre::AtomicObject< T >::mField, and OGRE_LOCK_AUTO_MUTEX.

template<class T>
T Ogre::AtomicObject< T >::operator+= ( const T &  add)
inline

Definition at line 101 of file OgreAtomicObject.h.

References Ogre::AtomicObject< T >::mField, and OGRE_LOCK_AUTO_MUTEX.

template<class T>
T Ogre::AtomicObject< T >::operator-- ( int  )
inline

Definition at line 95 of file OgreAtomicObject.h.

References Ogre::AtomicObject< T >::mField, and OGRE_LOCK_AUTO_MUTEX.

template<class T>
T Ogre::AtomicObject< T >::operator-= ( const T &  sub)
inline

Definition at line 108 of file OgreAtomicObject.h.

References Ogre::AtomicObject< T >::mField, and OGRE_LOCK_AUTO_MUTEX.

template<class T>
void Ogre::AtomicObject< T >::operator= ( const AtomicObject< T > &  cousin)
inline
template<class T>
void Ogre::AtomicObject< T >::set ( const T &  v)
inline

Member Data Documentation

template<class T>
Ogre::AtomicObject< T >::OGRE_AUTO_MUTEX
protected

Definition at line 117 of file OgreAtomicObject.h.


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