Nui
Loading...
Searching...
No Matches
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) noexcept
 
 ModifiableObserved (T &&t)
 
 ModifiableObserved (CustomEventContextFlag_t, EventContext *ctx)
 
 ModifiableObserved (CustomEventContextFlag_t, EventContext *ctx, T &&t)
 
ModifiableObservedoperator= (const ModifiableObserved &)=delete
 
ModifiableObservedoperator= (ModifiableObserved &&other) noexcept
 
ModifiableObservedoperator= (T const &contained)
 
ModifiableObservedoperator= (T &&contained)
 
ModifiableObservedoperator= (T &&t)
 Assign a completely new value.
 
ModifiableObservedoperator= (T &&t)
 
 ~ModifiableObserved () override=default
 
ModifiableObserved< T > & operator+= (U const &rhs)
 
ModifiableObserved< T > & operator-= (U const &rhs)
 
ModifiableObservedassignChecked (T &&other)
 
ModificationProxy modify ()
 Can be used to make mutations to the underlying class that get commited when the returned proxy is destroyed.
 
ModificationProxy modifyNow ()
 
 operator bool () const
 
T & value ()
 
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.
 
- Public Member Functions inherited from Nui::ObservedBase
 ObservedBase (CustomEventContextFlag_t, EventContext *ctx)
 
virtual ~ObservedBase ()=default
 
 ObservedBase (ObservedBase const &)=delete
 
 ObservedBase (ObservedBase &&other) noexcept
 
ObservedBaseoperator= (ObservedBase const &)=delete
 
ObservedBaseoperator= (ObservedBase &&other) noexcept
 
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.
 
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: