#include <juce_ScopedValueSetter.h>
template<typename ValueType>
class juce::ScopedValueSetter< ValueType >
Helper class providing an RAII-based mechanism for temporarily setting and then re-setting a value.
E.g.
{
}
{
}
Definition juce_ScopedValueSetter.h:55
ScopedValueSetter(ValueType &valueToSet, ValueType newValue)
Definition juce_ScopedValueSetter.h:60
unsigned x[BMAX+1]
Definition inflate.c:1586
@tags{Core}
◆ ScopedValueSetter() [1/2]
template<typename ValueType>
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.
◆ ScopedValueSetter() [2/2]
template<typename ValueType>
| juce::ScopedValueSetter< ValueType >::ScopedValueSetter |
( |
ValueType & | valueToSet, |
|
|
ValueType | newValue, |
|
|
ValueType | valueWhenDeleted ) |
|
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.
◆ ~ScopedValueSetter()
template<typename ValueType>
◆ originalValue
template<typename ValueType>
◆ value
template<typename ValueType>
The documentation for this class was generated from the following file:
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_core/containers/juce_ScopedValueSetter.h