Nui
Public Member Functions | List of all members
Nui::Observed< T > Class Template Reference

#include <observed_value.hpp>

Inheritance diagram for Nui::Observed< T >:
Inheritance graph
[legend]
Collaboration diagram for Nui::Observed< T >:
Collaboration graph
[legend]

Public Member Functions

Observedoperator= (T const &contained)
 
Observedoperator= (T &&contained)
 
- Public Member Functions inherited from Nui::ModifiableObserved< T >
 ModifiableObserved ()
 
 ModifiableObserved (const ModifiableObserved &)=delete
 
 ModifiableObserved (ModifiableObserved &&other)
 
 ModifiableObserved (T &&t)
 
 ModifiableObserved (CustomEventContextFlag_t, EventContext *ctx)
 
 ModifiableObserved (CustomEventContextFlag_t, EventContext *ctx, T &&t)
 
ModifiableObservedoperator= (const ModifiableObserved &)=delete
 
ModifiableObservedoperator= (ModifiableObserved &&other)
 
ModifiableObservedoperator= (T const &contained)
 
ModifiableObservedoperator= (T &&contained)
 
ModifiableObservedoperator= (T &&t)
 Assign a completely new value. More...
 
requires std::equality_comparable_with< T, T > &&Fundamental< T > &&Fundamental< T > ModifiableObservedoperator= (T &&t)
 
 ~ModifiableObserved ()=default
 
requires PlusAssignable< T, U > ModifiableObserved< T > & operator+= (U const &rhs)
 
requires MinusAssignable< T, U > ModifiableObserved< T > & operator-= (U const &rhs)
 
requires std::equality_comparable_with< T, T > ModifiableObservedassignChecked (T &&other)
 
ModificationProxy modify ()
 Can be used to make mutations to the underlying class that get commited when the returned proxy is destroyed. More...
 
ModificationProxy modifyNow ()
 
 operator bool () const requires std
 
T const & value () const
 
T & operator* ()
 
T const & operator* () const
 
T * operator-> ()
 
T const * operator-> () const
 
void assignWithoutUpdate (T &&t)
 Sets the value without making an update. More...
 
- Public Member Functions inherited from Nui::ObservedBase
 ObservedBase (CustomEventContextFlag_t, EventContext *ctx)
 
virtual ~ObservedBase ()=default
 
 ObservedBase (ObservedBase const &)=delete
 
 ObservedBase (ObservedBase &&other)
 
ObservedBaseoperator= (ObservedBase const &)=delete
 
ObservedBaseoperator= (ObservedBase &&other)
 
void attachEvent (EventContext::EventIdType eventId) const
 
void attachOneshotEvent (EventContext::EventIdType eventId) const
 
void detachEvent (EventContext::EventIdType eventId) const
 
std::size_t attachedEventCount () const
 
std::size_t attachedOneshotEventCount () const
 
std::size_t totalAttachedEventCount () const
 
void detachAllEvents ()
 You should never need to do this. More...
 
virtual void update (bool=false) const
 
void updateNow (bool force=false) const
 

Additional Inherited Members

- Public Types inherited from Nui::ModifiableObserved< T >
using value_type = T
 
- Protected Attributes inherited from Nui::ModifiableObserved< T >
contained_
 
- Protected Attributes inherited from Nui::ObservedBase
EventContexteventContext_
 
std::vector< EventContext::EventIdTypeattachedEvents_
 
std::vector< EventContext::EventIdTypeattachedOneshotEvents_
 

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
Observed& Nui::Observed< T >::operator= ( T &&  contained)
inline

◆ operator=() [2/2]

template<typename T >
Observed& Nui::Observed< T >::operator= ( T const &  contained)
inline

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