|
ReXGlue SDK
|
#include <rex/types.h>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| EndianValue (const T &src) | |
| EndianValue (const EndianValue &)=default | |
| EndianValue & | operator= (const EndianValue &)=default |
| operator T () const | |
| void | Set (const T &src) |
| T | Get () const |
| T | Load (std::memory_order order) const |
| void | Store (T src, std::memory_order order) |
| bool | CompareExchange (T &expected, T desired, std::memory_order order) |
| EndianValue< T, E > & | operator+= (int a) |
| EndianValue< T, E > & | operator-= (int a) |
| EndianValue< T, E > & | operator++ () |
| EndianValue< T, E > | operator++ (int) |
| EndianValue< T, E > & | operator-- () |
| EndianValue< T, E > | operator-- (int) |
Public Attributes | |
| T | value |
Value held in memory in a fixed byte order and converted to native order on access.
|
inline |
Replaces the value atomically when it equals an expected native value.
| expected | The native value to compare. Receives the current native value on failure. |
| desired | The native value to store on success. |
|
inline |
|
inline |
Loads the native value atomically.
|
inline |
|
inline |
Stores a native value in byte order E.
|
inline |
Stores a native value in byte order E atomically.
| T rex::EndianValue< T, E >::value |
The raw value in byte order E.