7#include "group_ptr.hpp"
8#include "../macros.hpp"
13hi_export_module(hikogui.observer : observed);
15hi_export
namespace hi {
inline namespace v1 {
22 void const *
const ptr;
30class observed_base :
public enable_group_ptr<observed_base, void(observable_msg)> {
64 template<
typename...
Args>
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
Definition observed.hpp:17
std::vector< std::string > path_type
The type of the path used for notifying observers.
Definition observed.hpp:20
An abstract observed object.
Definition observed.hpp:30
virtual void const * get() const noexcept=0
Get a pointer to the current value.
Definition observed.hpp:53
void * get() noexcept override
Get a pointer to the current value.
Definition observed.hpp:74
void const * get() const noexcept override
Get a pointer to the current value.
Definition observed.hpp:69
constexpr observed(Args &&...args) noexcept
Construct the shared state and initialize the value.
Definition observed.hpp:65