mitteLib
Loading...
Searching...
No Matches
mlab::observe< T > Class Template Reference

#include <observable.hpp>

Public Member Functions

 observe ()=default
 
 observe (observe const &)=delete
 
 observe (observe &&other) noexcept
 
observeoperator= (observe const &)=delete
 
observeoperator= (observe &&other) noexcept
 
 ~observe ()
 
void deregister ()
 
 observe (observable< T > &obs_value, typename observable< T >::read_observer_fn read_fn, typename observable< T >::write_observer_fn write_fn)
 
 observe (observable_ref< T > &obs_value_ref, typename observable< T >::read_observer_fn read_fn, typename observable< T >::write_observer_fn write_fn)
 

Private Attributes

observable< T > * _obs_value = nullptr
 
std::size_t _idx = std::numeric_limits<std::size_t>::max()
 

Constructor & Destructor Documentation

◆ observe() [1/5]

template<class T >
mlab::observe< T >::observe ( )
default

◆ observe() [2/5]

template<class T >
mlab::observe< T >::observe ( observe< T > const & )
delete

◆ observe() [3/5]

template<class T >
mlab::observe< T >::observe ( observe< T > && other)
noexcept

◆ ~observe()

template<class T >
mlab::observe< T >::~observe ( )

◆ observe() [4/5]

template<class T >
mlab::observe< T >::observe ( observable< T > & obs_value,
typename observable< T >::read_observer_fn read_fn,
typename observable< T >::write_observer_fn write_fn )

◆ observe() [5/5]

template<class T >
mlab::observe< T >::observe ( observable_ref< T > & obs_value_ref,
typename observable< T >::read_observer_fn read_fn,
typename observable< T >::write_observer_fn write_fn )

Member Function Documentation

◆ deregister()

template<class T >
void mlab::observe< T >::deregister ( )

◆ operator=() [1/2]

template<class T >
observe< T > & mlab::observe< T >::operator= ( observe< T > && other)
noexcept

◆ operator=() [2/2]

template<class T >
observe & mlab::observe< T >::operator= ( observe< T > const & )
delete

Member Data Documentation

◆ _idx

template<class T >
std::size_t mlab::observe< T >::_idx = std::numeric_limits<std::size_t>::max()
private

◆ _obs_value

template<class T >
observable<T>* mlab::observe< T >::_obs_value = nullptr
private

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