|
|
using | void_pointer = std::conditional_t<is_writing, void *, void const *> |
| |
|
using | const_void_pointer = void const * |
| |
|
using | reference = std::conditional_t<is_writing, value_type&, value_type const&> |
| |
|
using | const_reference = value_type const& |
| |
|
using | pointer = std::conditional_t<is_writing, value_type *, value_type const *> |
| |
|
using | const_pointer = value_type const * |
| |
|
| | ~_proxy () noexcept |
| | Commits and destruct the proxy object.
|
| |
|
| _proxy (_proxy const &)=delete |
| |
|
_proxy & | operator= (_proxy const &)=delete |
| |
|
| _proxy (_proxy const &other) noexcept |
| |
|
_proxy & | operator= (_proxy const &other) noexcept |
| |
|
| _proxy (_proxy &&other) noexcept |
| |
|
_proxy & | operator= (_proxy &&other) noexcept |
| |
| constexpr | _proxy () noexcept=default |
| | Construct an empty proxy object.
|
| |
| reference | operator* () noexcept |
| | Dereference the value.
|
| |
| const_reference | operator* () const noexcept |
| | Dereference the value.
|
| |
| pointer | operator-> () noexcept |
| | Pointer dereference the value.
|
| |
| pointer | operator& () noexcept |
| | Pointer dereference the value.
|
| |
| const_pointer | operator-> () const noexcept |
| | Pointer dereference the value.
|
| |
| void | commit () noexcept |
| | Commit the changes to the value early.
|
| |
| void | abort () noexcept |
| | Revert any changes to the value.
|
| |
|
| X (++) X(--) X(++) X(--) X(+ |
| |
| | _proxy (observer const *observer, void_pointer base, pointer value) noexcept |
| | Create a proxy object.
|
| |
|
void | _commit () noexcept |
| |
|
void | _abort () noexcept |
| |
template<typename T>
template<bool IsWriting>
class v1::observer< T >::_proxy< IsWriting >
A proxy object of the observer.
The proxy is a RAII object that manages a transaction with the shared-state as a whole, while giving access to only a sub-object of the shared-state.
- Template Parameters
-
| IsWriting | The proxy is being used to write |