Nui
|
#include <observed_value.hpp>
Public Member Functions | |
Observed & | operator= (T const &contained) |
Observed & | operator= (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) | |
ModifiableObserved & | operator= (const ModifiableObserved &)=delete |
ModifiableObserved & | operator= (ModifiableObserved &&other) |
ModifiableObserved & | operator= (T const &contained) |
ModifiableObserved & | operator= (T &&contained) |
ModifiableObserved & | operator= (T &&t) |
Assign a completely new value. More... | |
requires std::equality_comparable_with< T, T > &&Fundamental< T > &&Fundamental< T > ModifiableObserved & | operator= (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 > ModifiableObserved & | assignChecked (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) | |
ObservedBase & | operator= (ObservedBase const &)=delete |
ObservedBase & | operator= (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 > | |
T | contained_ |
Protected Attributes inherited from Nui::ObservedBase | |
EventContext * | eventContext_ |
std::vector< EventContext::EventIdType > | attachedEvents_ |
std::vector< EventContext::EventIdType > | attachedOneshotEvents_ |
|
inline |
|
inline |