Audacity 3.2.0
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
audacity::BasicSettings::GroupScope Class Referencefinal

#include <BasicSettings.h>

Public Member Functions

 GroupScope (const GroupScope &)=delete
 
 GroupScope (GroupScope &&)=delete
 
GroupScopeoperator= (const GroupScope &)=delete
 
GroupScopeoperator= (GroupScope &&)=delete
 
void Reset () noexcept
 
 ~GroupScope ()
 

Private Member Functions

 GroupScope (BasicSettings &settings)
 

Private Attributes

std::optional< std::reference_wrapper< BasicSettings > > mSettings
 

Friends

class BasicSettings
 

Detailed Description

Definition at line 33 of file BasicSettings.h.

Constructor & Destructor Documentation

◆ GroupScope() [1/3]

BasicSettings::GroupScope::GroupScope ( BasicSettings settings)
private

Definition at line 110 of file BasicSettings.cpp.

112{
113}
static Settings & settings()
Definition: TrackInfo.cpp:51
std::optional< std::reference_wrapper< BasicSettings > > mSettings
Definition: BasicSettings.h:37

◆ GroupScope() [2/3]

audacity::BasicSettings::GroupScope::GroupScope ( const GroupScope )
delete

◆ GroupScope() [3/3]

audacity::BasicSettings::GroupScope::GroupScope ( GroupScope &&  )
delete

◆ ~GroupScope()

BasicSettings::GroupScope::~GroupScope ( )

Definition at line 122 of file BasicSettings.cpp.

122{ Reset(); }

Member Function Documentation

◆ operator=() [1/2]

GroupScope & audacity::BasicSettings::GroupScope::operator= ( const GroupScope )
delete

◆ operator=() [2/2]

GroupScope & audacity::BasicSettings::GroupScope::operator= ( GroupScope &&  )
delete

◆ Reset()

void BasicSettings::GroupScope::Reset ( )
noexcept

Definition at line 115 of file BasicSettings.cpp.

116{
117 if(mSettings)
118 mSettings->get().DoEndGroup();
119 mSettings.reset();
120}

Friends And Related Function Documentation

◆ BasicSettings

friend class BasicSettings
friend

Definition at line 35 of file BasicSettings.h.

Member Data Documentation

◆ mSettings

std::optional<std::reference_wrapper<BasicSettings> > audacity::BasicSettings::GroupScope::mSettings
private

Definition at line 37 of file BasicSettings.h.


The documentation for this class was generated from the following files: