32-bit unsigned counter with atomic arithmetic, increments, and decrements. More...
Public Member Functions | |
Atom32 () | |
Default constructor initializes the counter to zero. More... |
|
Atom32 (const Uint32 val) | |
Constructor initializes the counter to val . More... |
|
Uint32 | operator= (const Uint32 val) |
Assigns val to the counter. More... |
|
Uint32 | operator+= (const Uint32 val) |
Adds val to counter. More... |
|
Uint32 | operator-= (const Uint32 val) |
Subtracts val from counter. More... |
|
Uint32 | operator++ () |
Increments counter by one. More... |
|
Uint32 | operator++ (int) |
Increments counter by one. More... |
|
Uint32 | operator-- () |
Decrements counter by one. More... |
|
Uint32 | operator-- (int) |
Decrements counter by one. More... |
|
operator Uint32 () const | |
Implicit conversion operator to mi::Uint32. More... |
|
Uint32 | swap (const Uint32 val) |
Assign val to counter and return the old value of counter. More... |
|
32-bit unsigned counter with atomic arithmetic, increments, and decrements.
|
inline |
Default constructor initializes the counter to zero.
|
inline |
Constructor initializes the counter to val
.
|
inline |
Implicit conversion operator to mi::Uint32.