Audacity 3.2.0
|
Public Member Functions | |
EffectSettingsAccessTee (EffectSettingsAccess &main, const std::shared_ptr< EffectSettingsAccess > &pSide={}) | |
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 | |
const std::shared_ptr< EffectSettingsAccess > | mpMain |
const std::weak_ptr< EffectSettingsAccess > | mwSide |
Decorate an EffectSettingsAccess with a Set
that replicates changes into a second EffectSettingsAccess, while that one still exists
Name inspired by man 1 tee
Definition at line 166 of file EffectUI.cpp.
EffectSettingsAccessTee::EffectSettingsAccessTee | ( | EffectSettingsAccess & | main, |
const std::shared_ptr< EffectSettingsAccess > & | pSide = {} |
||
) |
Definition at line 183 of file EffectUI.cpp.
|
overridevirtual |
Make the last Set
changes "persistent" in underlying storage.
Implements EffectSettingsAccess.
Definition at line 215 of file EffectUI.cpp.
|
overridevirtual |
|
overridevirtual |
Implements EffectSettingsAccess.
Definition at line 222 of file EffectUI.cpp.
References mpMain.
|
overridevirtual |
Implements EffectSettingsAccess.
|
overridevirtual |
Message-only overload of Set(). In future, this should be the only one.
Implements EffectSettingsAccess.
|
private |
Definition at line 178 of file EffectUI.cpp.
Referenced by Flush(), Get(), and IsSameAs().
|
private |
Definition at line 179 of file EffectUI.cpp.
Referenced by Flush().