openshot-audio
0.1.2
|
#include <juce_core.h>
Public Member Functions | |
ScopedValueSetter (ValueType &valueToSet, ValueType newValue) | |
ScopedValueSetter (ValueType &valueToSet, ValueType newValue, ValueType valueWhenDeleted) | |
~ScopedValueSetter () | |
Helper class providing an RAII-based mechanism for temporarily setting and then re-setting a value.
E.g.
|
inline |
Creates a ScopedValueSetter that will immediately change the specified value to the given new value, and will then reset it to its original value when this object is deleted.
|
inline |
Creates a ScopedValueSetter that will immediately change the specified value to the given new value, and will then reset it to be valueWhenDeleted when this object is deleted.
|
inline |