Clio develop
The XRP Ledger API server.
|
Atomic wrapper for integral and floating point types. More...
#include <Atomic.hpp>
Public Types | |
using | ValueType = NumberType |
Public Member Functions | |
Atomic (ValueType const value) | |
Construct a new Atomic object. | |
Atomic (Atomic const &)=delete | |
Atomic (Atomic &&)=delete | |
Atomic & | operator= (Atomic const &)=delete |
Atomic & | operator= (Atomic &&)=delete |
void | add (ValueType const value) |
Add a value to the current value. | |
void | set (ValueType const value) |
Update the current value to the new value. | |
ValueType | value () const |
Get the current value. | |
Atomic wrapper for integral and floating point types.
|
inline |
Construct a new Atomic object.
value | The initial value |
|
inline |
Add a value to the current value.
value | The value to add |
|
inline |
Update the current value to the new value.
value | The new value |
|
inline |
Get the current value.