|
Yate
|
An atomic number. More...
#include <yateclass.h>
Public Member Functions | |
| YAtomicNumber () | |
| YAtomicNumber (Type val) | |
| YAtomicNumber (const YAtomicNumber &val) | |
| Type | value () const |
| Type | value () |
| Type & | valueRef () |
| Type | valueAtomic () const |
| Type | valueAtomic () |
| Type | set (Type val) |
| Type | inc () |
| Type | dec () |
| Type | add (Type val) |
| Type | sub (Type val) |
| Type | bitAnd (Type val) |
| Type | bitOr (Type val) |
| Type | bitXor (Type val) |
| Type | preInc () |
| Type | preDec () |
| Type | preAdd (Type val) |
| Type | preSub (Type val) |
| Type | preBitAnd (Type val) |
| Type | preBitOr (Type val) |
| Type | preBitXor (Type val) |
| operator Type () | |
| operator Type () const | |
| YAtomicNumber & | operator= (Type val) |
| YAtomicNumber & | operator= (const YAtomicNumber &val) |
| Type | operator+= (Type val) |
| Type | operator++ () |
| Type | operator-- () |
| Type | operator++ (int) |
| Type | operator-- (int) |
| Type | operator-= (Type val) |
| Type | operator&= (Type val) |
| Type | operator|= (Type val) |
| Type | operator^= (Type val) |
Public Member Functions inherited from AtomicOp | |
| AtomicOp () | |
| RWLock * | lock () const |
Protected Attributes | |
| Type | m_value |
Protected Attributes inherited from AtomicOp | |
| RWLock * | m_lock |
Additional Inherited Members | |
Static Public Member Functions inherited from AtomicOp | |
| static bool | efficient () |
An atomic number.
This class holds an atomic number along with operations on it
|
inline |
Default constructor
|
inlineexplicit |
Constructor
| val | Initial value |
|
inlineexplicit |
Copy constructor
| val | Initial value |
|
inline |
Add a number to this one
| val | Number to add |
|
inline |
Bitwise AND
| val | Value to apply |
|
inline |
Bitwise OR
| val | Value to apply |
|
inline |
Bitwise XOR
| val | Value to apply |
|
inline |
Decrement this number
|
inline |
Increment this number
|
inline |
Cast operator Return atomic value
|
inline |
Cast operator Return atomic value
|
inline |
Bitwise AND operator
| val | Number to apply |
|
inline |
Prefix increment operator
|
inline |
Postfix increment operator
|
inline |
Addition operator
| val | Number to add |
|
inline |
Prefix decrement operator
|
inline |
Postfix decrement operator
|
inline |
Substraction operator
| val | Number to substract |
|
inline |
Assignment operator
| val | Number to set |
|
inline |
Assignment operator
| val | Number to set |
|
inline |
Bitwise XOR operator
| val | Number to apply |
|
inline |
Bitwise OR operator
| val | Number to apply |
|
inline |
Add a number to this one
| val | Number to add |
|
inline |
Bitwise AND
| val | Value to apply |
|
inline |
Bitwise OR
| val | Value to apply |
|
inline |
Bitwise XOR
| val | Value to apply |
|
inline |
Decrement this number
|
inline |
Increment this number
|
inline |
Substract a number from this one
| val | Number to substract |
|
inline |
Replace (set a new) value
| val | Value to set |
|
inline |
Substract a number from this one
| val | Number to substract |
|
inline |
Retrieve held number
|
inline |
Retrieve held number
|
inline |
Atomically retrieve held number
|
inline |
Atomically retrieve held number
|
inline |
Retrieve held number reference