Public Member Functions | Protected Attributes | List of all members
Ogre::AtomicObject< T > Class Template Reference

#include <OgreAtomicObject.h>

Public Member Functions

 AtomicObject ()
 
 AtomicObject (const AtomicObject< T > &cousin)
 
 AtomicObject (const T &initial)
 
bool cas (const T &old, const T &nu)
 
T get (void) const
 
T operator++ (int)
 
T operator++ (void)
 
T operator+= (const T &add)
 
T operator-- (int)
 
T 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

◆ AtomicObject() [1/3]

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

Definition at line 47 of file OgreAtomicObject.h.

◆ AtomicObject() [2/3]

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

Definition at line 51 of file OgreAtomicObject.h.

◆ AtomicObject() [3/3]

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

Definition at line 55 of file OgreAtomicObject.h.

Member Function Documentation

◆ cas()

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

Definition at line 75 of file OgreAtomicObject.h.

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

◆ get()

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

Definition at line 63 of file OgreAtomicObject.h.

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

◆ operator++() [1/2]

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

Definition at line 89 of file OgreAtomicObject.h.

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

◆ operator++() [2/2]

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

Definition at line 83 of file OgreAtomicObject.h.

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

◆ operator+=()

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

Definition at line 101 of file OgreAtomicObject.h.

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

◆ operator--()

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

Definition at line 95 of file OgreAtomicObject.h.

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

◆ operator-=()

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

Definition at line 108 of file OgreAtomicObject.h.

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

◆ operator=()

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

Definition at line 58 of file OgreAtomicObject.h.

References Ogre::SharedPtr< T >::get().

◆ set()

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

Definition at line 69 of file OgreAtomicObject.h.

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

Member Data Documentation

◆ mField

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

◆ OGRE_AUTO_MUTEX

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:

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.