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

#include <observable.hpp>

Inheritance diagram for mlab::observable_ref< T >:
Collaboration diagram for mlab::observable_ref< T >:

Public Types

using read_value_type = typename observable_cref<T>::read_value_type
 
using read_observer_fn = typename observable<T>::read_observer_fn
 
using write_observer_fn = typename observable<T>::write_observer_fn
 
- Public Types inherited from mlab::observable_cref< T >
using read_value_type = typename observable<T>::read_value_type
 

Public Member Functions

 observable_ref (observable< T > &ref)
 
observable_ref< T > & operator= (T t)
 
observe< T > do_observe (read_observer_fn read_fn, write_observer_fn write_fn)
 
- Public Member Functions inherited from mlab::observable_cref< T >
 observable_cref (observable< T > const &ref)
 
 operator read_value_type () const
 

Friends

class observe< T >
 

Additional Inherited Members

- Protected Attributes inherited from mlab::observable_cref< T >
observable< T > const & _ref
 

Member Typedef Documentation

◆ read_observer_fn

template<class T >
using mlab::observable_ref< T >::read_observer_fn = typename observable<T>::read_observer_fn

◆ read_value_type

template<class T >
using mlab::observable_ref< T >::read_value_type = typename observable_cref<T>::read_value_type

◆ write_observer_fn

template<class T >
using mlab::observable_ref< T >::write_observer_fn = typename observable<T>::write_observer_fn

Constructor & Destructor Documentation

◆ observable_ref()

template<class T >
mlab::observable_ref< T >::observable_ref ( observable< T > & ref)
inlineexplicit

Member Function Documentation

◆ do_observe()

template<class T >
observe< T > mlab::observable_ref< T >::do_observe ( read_observer_fn read_fn,
write_observer_fn write_fn )
nodiscard

◆ operator=()

template<class T >
observable_ref< T > & mlab::observable_ref< T >::operator= ( T t)
inline

Friends And Related Symbol Documentation

◆ observe< T >

template<class T >
friend class observe< T >
friend

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