| OGRE 1.10.11 Object-Oriented Graphics Rendering Engine

Public Member Functions | List of all members
Ogre::AtomicScalar< T > Class Template Reference
Core » General

`#include <OgreAtomicScalar.h>`

## Public Member Functions
| AtomicScalar (const T &initial)
| AtomicScalar (const AtomicScalar< T > &cousin)
| AtomicScalar ()
bool | cas (const T &old, const T &nu)
bool | compare_exchange_strong (T &old, const T &nu)
T | get (void) const
T | load () const
T | operator++ (void)
T | operator++ (int)
T | operator+= (const T &add)
T | operator-- (void)
T | operator-- (int)
T | operator-= (const T &sub)
void | operator= (const AtomicScalar< T > &cousin)
void | set (const T &v)
void | store (const T &v)

## Constructor & Destructor Documentation

## ◆ AtomicScalar() [1/3]

template<class T>

Ogre::AtomicScalar< T >::AtomicScalar | ( | const T & | initial | ) |
| inline

## ◆ AtomicScalar() [2/3]

template<class T>

Ogre::AtomicScalar< T >::AtomicScalar | ( | const AtomicScalar< T > & | cousin | ) |
| inline

## ◆ AtomicScalar() [3/3]

template<class T>

Ogre::AtomicScalar< T >::AtomicScalar | ( |  | ) |
| inline

## Member Function Documentation

## ◆ operator=()

template<class T>

void Ogre::AtomicScalar< T >::operator= | ( | const AtomicScalar< T > & | cousin | ) |
| inline

## ◆ load()

template<class T>

T Ogre::AtomicScalar< T >::load | ( |  | ) | const
| inline

Referenced by Ogre::Resource::getLoadingState(), Ogre::Resource::isLoaded(), Ogre::Resource::isLoading(), Ogre::Resource::isPrepared(), Ogre::SharedPtr< Skeleton >::unique(), and Ogre::SharedPtr< Skeleton >::use_count().

## ◆ get()

template<class T>

T Ogre::AtomicScalar< T >::get | ( | void |  | ) | const
| inline

Deprecated:
  use load()

## ◆ store()

template<class T>

void Ogre::AtomicScalar< T >::store | ( | const T & | v | ) |
| inline

Referenced by Ogre::Resource::setToLoaded().

## ◆ set()

template<class T>

void Ogre::AtomicScalar< T >::set | ( | const T & | v | ) |
| inline

Deprecated:
  use store()

## ◆ cas()

template<class T>

bool Ogre::AtomicScalar< T >::cas | ( | const T & | old,
|  | const T & | nu
| ) |  |
| inline

Deprecated:
  use compare_exchange_strong()

## ◆ compare_exchange_strong()

template<class T>

bool Ogre::AtomicScalar< T >::compare_exchange_strong | ( | T & | old,
|  | const T & | nu
| ) |  |
| inline

Referenced by Ogre::AtomicScalar< unsigned >::cas().

## ◆ operator++() [1/2]

template<class T>

T Ogre::AtomicScalar< T >::operator++ | ( | void |  | ) |
| inline

## ◆ operator--() [1/2]

template<class T>

T Ogre::AtomicScalar< T >::operator-- | ( | void |  | ) |
| inline

## ◆ operator++() [2/2]

template<class T>

T Ogre::AtomicScalar< T >::operator++ | ( | int |  | ) |
| inline

## ◆ operator--() [2/2]

template<class T>

T Ogre::AtomicScalar< T >::operator-- | ( | int |  | ) |
| inline

## ◆ operator+=()

template<class T>

T Ogre::AtomicScalar< T >::operator+= | ( | const T & | add | ) |
| inline

## ◆ operator-=()

template<class T>

T Ogre::AtomicScalar< T >::operator-= | ( | const T & | sub | ) |
| inline

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

- OgreAtomicScalar.h