#include <AtomicValueType.hpp>

Public Member Functions | |
| TAtomicValueType () | |
| TAtomicValueType (T tValue) | |
| TAtomicValueType (const TAtomicValueType< T > &rValue) | |
| virtual | ~TAtomicValueType () |
| T | addAndGet (T tValue) |
| bool | compareAndSet (T tExpectedValue, T tUpdate) |
| T | decrementAndGet () |
| T | divideAndGet (T tValue) |
| bool | equals (T tExpectedValue) const |
| const T | getAndDecrement () |
| const T | getAndIncrement () |
| T | getValue () |
| T | getValue () const |
| T | incrementAndGet () |
| T | multiplyAndGet (T tValue) |
| void | setValue (T tValue) |
| TAtomicValueType< T > & | operator+= (const T tValue) |
| TAtomicValueType< T > & | operator-= (const T tValue) |
| TAtomicValueType< T > & | operator*= (const T tValue) |
| TAtomicValueType< T > & | operator/= (const T tValue) |
| TAtomicValueType< T > & | operator= (const TAtomicValueType< T > &rInVal) |
| TAtomicValueType< T > & | operator= (T tValue) |
| bool | operator== (const T tValue) const |
| bool | operator== (const int iValue) const |
| bool | operator!= (const T tValue) const |
| bool | operator!= (const int iValue) const |
| const T | operator++ () |
| const T | operator-- () |
| T | operator++ (int) |
| T | operator-- (int) |
| operator T () const | |
Protected Attributes | |
| T | m_tValue |
| internal value | |
| TCriticalSection & | m_rLock |
| Lock of the atomic value. | |
| zeus::TAtomicValueType< T >::TAtomicValueType | ( | ) | [inline] |
Creates an empty value object
| zeus::TAtomicValueType< T >::TAtomicValueType | ( | T | tValue | ) | [inline] |
Creates a value object out of a value value
| zeus::TAtomicValueType< T >::TAtomicValueType | ( | const TAtomicValueType< T > & | rValue | ) | [inline] |
Copy constructor of the atomic value
| rValue | : atomic value to copy |
| zeus::TAtomicValueType< T >::~TAtomicValueType | ( | ) | [inline, virtual] |
Destroys the value object
| T zeus::TAtomicValueType< T >::addAndGet | ( | T | tValue | ) | [inline] |
adds a value to the atomic value
| bool zeus::TAtomicValueType< T >::compareAndSet | ( | T | tExpectedValue, | |
| T | tUpdate | |||
| ) | [inline] |
compares the value and updates if the value equals(tExpectedValue)
| tExpectedValue | : Value to check | |
| tUpdate | : Update if value equals(tExpectedValue) |
| true | : Values updated | |
| false,: | Value not updated |
| T zeus::TAtomicValueType< T >::decrementAndGet | ( | ) | [inline] |
decrements the value and returns the result
| T zeus::TAtomicValueType< T >::divideAndGet | ( | T | tValue | ) | [inline] |
divides a value to the atomic value
| bool zeus::TAtomicValueType< T >::equals | ( | T | tExpectedValue | ) | const [inline] |
equals operator to check if two values are the same
| const T zeus::TAtomicValueType< T >::getAndDecrement | ( | ) | [inline] |
returns the value before decrementing it
| const T zeus::TAtomicValueType< T >::getAndIncrement | ( | ) | [inline] |
returns the value before incrementing it
| T zeus::TAtomicValueType< T >::getValue | ( | ) | [inline] |
gets the value of the value object
| T zeus::TAtomicValueType< T >::getValue | ( | ) | const [inline] |
gets the value of the value object
| T zeus::TAtomicValueType< T >::incrementAndGet | ( | ) | [inline] |
increments the value and returns the result
| T zeus::TAtomicValueType< T >::multiplyAndGet | ( | T | tValue | ) | [inline] |
multiblies a value to the atomic value
| void zeus::TAtomicValueType< T >::setValue | ( | T | tValue | ) | [inline] |
assigns a value to the atomic value
| TAtomicValueType< T > & zeus::TAtomicValueType< T >::operator+= | ( | const T | tValue | ) | [inline] |
adds a value to this object
| TAtomicValueType< T > & zeus::TAtomicValueType< T >::operator-= | ( | const T | tValue | ) | [inline] |
subtracts a value from this object
| TAtomicValueType< T > & zeus::TAtomicValueType< T >::operator*= | ( | const T | tValue | ) | [inline] |
multiblies a value with this object
| TAtomicValueType< T > & zeus::TAtomicValueType< T >::operator/= | ( | const T | tValue | ) | [inline] |
divide a value with this object
| TAtomicValueType<T>& zeus::TAtomicValueType< T >::operator= | ( | const TAtomicValueType< T > & | rInVal | ) | [inline] |
| TAtomicValueType<T>& zeus::TAtomicValueType< T >::operator= | ( | T | tValue | ) | [inline] |
| bool zeus::TAtomicValueType< T >::operator== | ( | const T | tValue | ) | const [inline] |
| bool zeus::TAtomicValueType< T >::operator== | ( | const int | iValue | ) | const [inline] |
| bool zeus::TAtomicValueType< T >::operator!= | ( | const T | tValue | ) | const [inline] |
| bool zeus::TAtomicValueType< T >::operator!= | ( | const int | iValue | ) | const [inline] |
| const T zeus::TAtomicValueType< T >::operator++ | ( | ) | [inline] |
| const T zeus::TAtomicValueType< T >::operator-- | ( | ) | [inline] |
| T zeus::TAtomicValueType< T >::operator++ | ( | int | ) | [inline] |
| T zeus::TAtomicValueType< T >::operator-- | ( | int | ) | [inline] |
| zeus::TAtomicValueType< T >::operator T | ( | ) | const [inline] |
T zeus::TAtomicValueType< T >::m_tValue [protected] |
internal value
TCriticalSection& zeus::TAtomicValueType< T >::m_rLock [mutable, protected] |
Lock of the atomic value.