HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::observed< T > Class Template Referencefinal
Inheritance diagram for hi::v1::observed< T >:
hi::v1::observed_base

Public Types

using value_type = T
using path_type = observable_msg::path_type

Public Member Functions

template<typename... Args>
constexpr observed (Args &&...args) noexcept
 Construct the shared state and initialize the value.
void const * get () const noexcept override
 Get a pointer to the current value.
void * get () noexcept override
 Get a pointer to the current value.
Public Member Functions inherited from hi::v1::observed_base
 observed_base (observed_base const &)=delete
 observed_base (observed_base &&)=delete
observed_base & operator= (observed_base const &)=delete
observed_base & operator= (observed_base &&)=delete

Constructor & Destructor Documentation

◆ observed()

template<std::equality_comparable T>
template<typename... Args>
hi::v1::observed< T >::observed ( Args &&... args)
inlineconstexprnoexcept

Construct the shared state and initialize the value.

Parameters
argsThe arguments passed to the constructor of the value.

Member Function Documentation

◆ get() [1/2]

template<std::equality_comparable T>
void const * hi::v1::observed< T >::get ( ) const
inlinenodiscardoverridevirtualnoexcept

Get a pointer to the current value.

Returns
A const pointer to the value. The observer should cast this to a pointer to the value-type.

Implements hi::v1::observed_base.

◆ get() [2/2]

template<std::equality_comparable T>
void * hi::v1::observed< T >::get ( )
inlinenodiscardoverridevirtualnoexcept

Get a pointer to the current value.

Returns
A pointer to the value. The observer should cast this to a pointer to the value-type.

Implements hi::v1::observed_base.


The documentation for this class was generated from the following file: