Helper class to provide transactional semantics for a value change. More...
#include <Component/ModelParam.H>
Public Member Functions | |
ValueChangeTransaction (T *p, const T &newval) | |
void | acceptChange () |
Helper class to provide transactional semantics for a value change.
The provisionally assigns a new value to a variable, but upon destruction (e.g. at block exit), the original value is restored unless the transaction has been explicitly accepted.
Definition at line 185 of file ModelParam.H.