7#include "observable_value.hpp"
9#include "../macros.hpp"
51 template<
typename... Args>
59 return ::hi::observer<value_type>(_pimpl);
68 [[nodiscard]]
auto get(
auto const& index)
const&
noexcept
81 template<fixed_
string Name>
82 [[nodiscard]]
auto get() const& noexcept
DOXYGEN BUG.
Definition algorithm.hpp:16
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
A observer pointing to the whole or part of a observable.
Definition observer.hpp:26
auto get(auto const &index) const noexcept
Create a sub-observer by indexing into the value.
Definition observer.hpp:517
Definition observable_value.hpp:19
Shared state of an application.
Definition shared_state.hpp:37
constexpr shared_state(Args &&...args) noexcept
Construct the shared state and initialize the value.
Definition shared_state.hpp:52
auto get(auto const &index) const &noexcept
Get a observer to a sub-object of value accessed by the index operator.
Definition shared_state.hpp:68
auto get() const &noexcept
Get a observer to a member variable of the value.
Definition shared_state.hpp:82