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)
T | get (void) 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)

## 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.

## AtomicScalar() [2/3]

template<class T>

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

Definition at line 405 of file OgreAtomicScalar.h.

## 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.

## get()

template<class T>

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

Definition at line 417 of file OgreAtomicScalar.h.

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

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

template<class T>

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

Definition at line 438 of file OgreAtomicScalar.h.

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

template<class T>

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

Definition at line 450 of file OgreAtomicScalar.h.

## operator+=()

template<class T>

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

Definition at line 462 of file OgreAtomicScalar.h.

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

template<class T>

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

Definition at line 444 of file OgreAtomicScalar.h.

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

template<class T>

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

Definition at line 456 of file OgreAtomicScalar.h.

## operator-=()

template<class T>

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

Definition at line 469 of file OgreAtomicScalar.h.

## operator=()

template<class T>

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

Definition at line 412 of file OgreAtomicScalar.h.

## set()

template<class T>

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

Definition at line 425 of file OgreAtomicScalar.h.

## Member Data Documentation

## mField

template<class T>

volatile T Ogre::AtomicScalar< T >::mField

protected

Definition at line 480 of file OgreAtomicScalar.h.

Referenced by Ogre::AtomicScalar< unsigned >::get(), Ogre::AtomicScalar< unsigned >::operator++(), Ogre::AtomicScalar< unsigned >::operator+=(), Ogre::AtomicScalar< unsigned >::operator--(), and Ogre::AtomicScalar< unsigned >::operator-=().

## 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:

- OgreAtomicScalar.h

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