HikoGUI
A low latency retained GUI
|
#include <hikogui/observer/observer_intf.hpp>
Public Types | |
using | reference = value_type & |
using | const_reference = value_type const & |
using | pointer = value_type * |
using | const_pointer = value_type const * |
Public Member Functions | |
~proxy_type () noexcept | |
Commits and destruct the proxy object. | |
proxy_type (proxy_type const &)=delete | |
proxy_type & | operator= (proxy_type const &)=delete |
proxy_type (proxy_type &&other) noexcept | |
proxy_type & | operator= (proxy_type &&other) noexcept |
proxy_type (observer *observer, value_type *ptr) noexcept | |
Create a proxy object. | |
proxy_type () noexcept | |
Create a proxy object. | |
reference | operator* () noexcept |
Dereference the value. | |
const_reference | operator* () const noexcept |
Dereference the value. | |
pointer | operator-> () noexcept |
Pointer dereference the value. | |
const_pointer | operator-> () const noexcept |
Pointer dereference the value. | |
pointer | operator& () noexcept |
Pointer dereference the value. | |
const_pointer | operator& () const noexcept |
Pointer dereference the value. | |
X (++) X(--) X(++) X(--) X(+ | |
void | start_write () noexcept |
Data Fields | |
value_type * | _ptr |
std::optional< value_type > | _original_value |
Friends | |
class | observer |
A proxy object of the observer.
The proxy is a RAII object that makes sure that listeners will get notified if the value was modified.
|
inlinenoexcept |
Commits and destruct the proxy object.
If commit()
or abort()
are called or the proxy object is empty then the destructor does not commit the changes.
|
inlinenoexcept |
Create a proxy object.
observer | a pointer to the observer. |
ptr | a pointer to the sub-object of the shared_state that the observer is pointing to. |
|
inlinenoexcept |
Create a proxy object.
observer | a pointer to the observer. |
ptr | a pointer to the sub-object of the shared_state that the observer is pointing to. |
|
inlinenoexcept |
Pointer dereference the value.
This function allows reads and modification to the value, including calling member functions on the value.
commit()
or abort()
|
inlinenoexcept |
Pointer dereference the value.
This function allows reads and modification to the value, including calling member functions on the value.
commit()
or abort()
|
inlinenoexcept |
Dereference the value.
This function allows reads and modification to the value
commit()
or abort()
|
inlinenoexcept |
Dereference the value.
This function allows reads and modification to the value
commit()
or abort()
|
inlinenoexcept |
Pointer dereference the value.
This function allows reads and modification to the value, including calling member functions on the value.
commit()
or abort()
|
inlinenoexcept |
Pointer dereference the value.
This function allows reads and modification to the value, including calling member functions on the value.
commit()
or abort()