morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::reactive::detail::UpdateGuard Class Reference

Marks a Store as inside its update for the guard's lifetime. More...

#include <store.hpp>

Public Member Functions

 UpdateGuard (UpdateFrame *&slot, UpdateFrame &frame) noexcept
 ~UpdateGuard ()
 Clears the Store's in-update slot, also when the update throws, unless the Store died.
 UpdateGuard (UpdateGuard const &)=delete
UpdateGuard & operator= (UpdateGuard const &)=delete
 UpdateGuard (UpdateGuard &&)=delete
UpdateGuard & operator= (UpdateGuard &&)=delete

Detailed Description

Marks a Store as inside its update for the guard's lifetime.

Definition at line 48 of file store.hpp.

Constructor & Destructor Documentation

◆ UpdateGuard()

morph::reactive::detail::UpdateGuard::UpdateGuard ( UpdateFrame *& slot,
UpdateFrame & frame )
inlinenoexcept
Parameters
slotThe Store's in-update slot; it points at frame until the guard ends.
frameThe update's frame.

Definition at line 52 of file store.hpp.

◆ ~UpdateGuard()

morph::reactive::detail::UpdateGuard::~UpdateGuard ( )
inline

Clears the Store's in-update slot, also when the update throws, unless the Store died.

Definition at line 54 of file store.hpp.


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