Audacity  3.0.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CachingSettingBase< T > Class Template Reference

Class template adds an in-memory cache of a value to SettingBase. More...

#include <Prefs.h>

Inheritance diagram for CachingSettingBase< T >:
[legend]
Collaboration diagram for CachingSettingBase< T >:
[legend]

Public Member Functions

 CachingSettingBase (const SettingBase &path)
 
- Public Member Functions inherited from SettingBase
 SettingBase (const char *path)
 
 SettingBase (const wxChar *path)
 
 SettingBase (const wxString &path)
 
wxConfigBase * GetConfig () const
 
const wxString & GetPath () const
 
bool Delete ()
 Delete the key if present, and return true iff it was. More...
 

Protected Member Functions

 CachingSettingBase (const CachingSettingBase &)=default
 
- Protected Member Functions inherited from SettingBase
 SettingBase (const SettingBase &)=default
 

Protected Attributes

mCurrentValue {}
 
bool mValid {false}
 
- Protected Attributes inherited from SettingBase
const RegistryPath mPath
 

Detailed Description

template<typename T>
class CachingSettingBase< T >

Class template adds an in-memory cache of a value to SettingBase.

Definition at line 87 of file Prefs.h.

Constructor & Destructor Documentation

◆ CachingSettingBase() [1/2]

template<typename T >
CachingSettingBase< T >::CachingSettingBase ( const SettingBase path)
inlineexplicit

Definition at line 90 of file Prefs.h.

91  : SettingBase{ path } {}

◆ CachingSettingBase() [2/2]

template<typename T >
CachingSettingBase< T >::CachingSettingBase ( const CachingSettingBase< T > &  )
protecteddefault

Member Data Documentation

◆ mCurrentValue

template<typename T >
T CachingSettingBase< T >::mCurrentValue {}
mutableprotected

◆ mValid

template<typename T >
bool CachingSettingBase< T >::mValid {false}
mutableprotected

Definition at line 95 of file Prefs.h.

Referenced by Setting< bool >::DoWrite(), and Setting< bool >::ReadWithDefault().


The documentation for this class was generated from the following file:
SettingBase
Base class for settings objects. It holds a configuration key path.
Definition: Prefs.h:67