OGRE  1.9.0
Ogre::AtomicScalar< T > Class Template Reference

#include <OgreAtomicScalar.h>

Public Member Functions

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

Protected Attributes

volatile T mField
 
 OGRE_AUTO_MUTEX
 

Detailed Description

template<class T>
class Ogre::AtomicScalar< T >

Definition at line 397 of file OgreAtomicScalar.h.

Constructor & Destructor Documentation

◆ AtomicScalar() [1/3]

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

Definition at line 401 of file OgreAtomicScalar.h.

References mField.

Referenced by AtomicScalar(), and operator=().

◆ AtomicScalar() [2/3]

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

Definition at line 405 of file OgreAtomicScalar.h.

References AtomicScalar(), and mField.

◆ AtomicScalar() [3/3]

template<class T>
Ogre::AtomicScalar< T >::AtomicScalar ( )

Definition at line 409 of file OgreAtomicScalar.h.

Member Function Documentation

◆ cas()

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

Definition at line 430 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ get()

template<class T>
T Ogre::AtomicScalar< T >::get ( void ) const

Definition at line 417 of file OgreAtomicScalar.h.

References mField.

◆ operator++() [1/2]

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

Definition at line 450 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ operator++() [2/2]

template<class T>
T Ogre::AtomicScalar< T >::operator++ ( void )

Definition at line 438 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ operator+=()

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

Definition at line 462 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ operator--() [1/2]

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

Definition at line 456 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ operator--() [2/2]

template<class T>
T Ogre::AtomicScalar< T >::operator-- ( void )

Definition at line 444 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ operator-=()

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

Definition at line 469 of file OgreAtomicScalar.h.

References mField, and OGRE_LOCK_AUTO_MUTEX.

◆ operator=()

template<class T>
void Ogre::AtomicScalar< T >::operator= ( const AtomicScalar< T > & cousin)

Definition at line 412 of file OgreAtomicScalar.h.

References AtomicScalar(), and mField.

◆ set()

template<class T>
void Ogre::AtomicScalar< T >::set ( const T & v)

Definition at line 425 of file OgreAtomicScalar.h.

References mField.

Member Data Documentation

◆ mField

template<class T>
volatile T Ogre::AtomicScalar< T >::mField
protected

◆ OGRE_AUTO_MUTEX

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

Definition at line 478 of file OgreAtomicScalar.h.


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