HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::observed_base Class Referenceabstract

#include <hikogui/observer/observed.hpp>

Inheritance diagram for hi::v1::observed_base:
hi::v1::observed< T >

Public Member Functions

 observed_base (observed_base const &)=delete
 observed_base (observed_base &&)=delete
observed_base & operator= (observed_base const &)=delete
observed_base & operator= (observed_base &&)=delete
virtual void const * get () const noexcept=0
 Get a pointer to the current value.
virtual void * get () noexcept=0
 Get a pointer to the current value.

Detailed Description

An abstract observed object.

This type is referenced by observers

Member Function Documentation

◆ get() [1/2]

virtual void const * hi::v1::observed_base::get ( ) const
nodiscardpure virtualnoexcept

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.

Implemented in hi::v1::observed< T >.

◆ get() [2/2]

virtual void * hi::v1::observed_base::get ( )
nodiscardpure virtualnoexcept

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.

Implemented in hi::v1::observed< T >.


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