Audacity 3.2.0
|
Implementation of EffectSettings for cases where there is only one thread. More...
#include <EffectInterface.h>
Public Member Functions | |
SimpleEffectSettingsAccess (EffectSettings &settings) | |
~SimpleEffectSettingsAccess () override | |
const EffectSettings & | Get () override |
void | Set (EffectSettings &&settings, std::unique_ptr< Message > pMessage) override |
void | Set (std::unique_ptr< Message > pMessage) override |
Message-only overload of Set(). In future, this should be the only one. More... | |
void | Flush () override |
Make the last Set changes "persistent" in underlying storage. More... | |
bool | IsSameAs (const EffectSettingsAccess &other) const override |
Public Member Functions inherited from EffectSettingsAccess | |
virtual | ~EffectSettingsAccess () |
virtual const EffectSettings & | Get ()=0 |
virtual void | Set (EffectSettings &&settings, std::unique_ptr< Message > pMessage=nullptr)=0 |
virtual void | Set (std::unique_ptr< Message > pMessage=nullptr)=0 |
Message-only overload of Set(). In future, this should be the only one. More... | |
virtual void | Flush ()=0 |
Make the last Set changes "persistent" in underlying storage. More... | |
virtual bool | IsSameAs (const EffectSettingsAccess &other) const =0 |
template<typename Function > | |
void | ModifySettings (Function &&function) |
Do a correct read-modify-write of settings. More... | |
Private Attributes | |
EffectSettings & | mSettings |
Implementation of EffectSettings for cases where there is only one thread.
Definition at line 219 of file EffectInterface.h.
|
inlineexplicit |
Definition at line 222 of file EffectInterface.h.
|
overridedefault |
|
overridevirtual |
Make the last Set
changes "persistent" in underlying storage.
Implements EffectSettingsAccess.
Definition at line 40 of file EffectInterface.cpp.
|
overridevirtual |
Implements EffectSettingsAccess.
Definition at line 25 of file EffectInterface.cpp.
References mSettings.
|
overridevirtual |
Implements EffectSettingsAccess.
Definition at line 44 of file EffectInterface.cpp.
References mSettings.
|
overridevirtual |
Implements EffectSettingsAccess.
Definition at line 30 of file EffectInterface.cpp.
References mSettings, and settings().
|
overridevirtual |
Message-only overload of Set(). In future, this should be the only one.
Implements EffectSettingsAccess.
Definition at line 36 of file EffectInterface.cpp.
|
private |
Definition at line 232 of file EffectInterface.h.
Referenced by Get(), IsSameAs(), and Set().