Classes | Public Types | Public Member Functions | List of all members
openmsx::UserSettings Class Reference

#include <UserSettings.hh>

Public Types

using Settings = std::vector< std::unique_ptr< Setting > >

Public Member Functions

 UserSettings (CommandController &commandController)
void addSetting (std::unique_ptr< Setting > setting)
void deleteSetting (Setting &setting)
SettingfindSetting (std::string_view name) const
const SettingsgetSettings () const

Detailed Description

Definition at line 13 of file UserSettings.hh.

Member Typedef Documentation

◆ Settings

using openmsx::UserSettings::Settings = std::vector<std::unique_ptr<Setting> >

Definition at line 16 of file UserSettings.hh.

Constructor & Destructor Documentation

◆ UserSettings()

openmsx::UserSettings::UserSettings ( CommandController commandController)

Definition at line 25 of file

Member Function Documentation

◆ addSetting()

void openmsx::UserSettings::addSetting ( std::unique_ptr< Setting setting)

Definition at line 30 of file

References findSetting().

◆ deleteSetting()

void openmsx::UserSettings::deleteSetting ( Setting setting)

Definition at line 36 of file

References move_pop_back(), and rfind_if_unguarded().

◆ findSetting()

Setting * openmsx::UserSettings::findSetting ( std::string_view  name) const

Definition at line 42 of file

References ranges::find_if().

Referenced by addSetting().

◆ getSettings()

const Settings& openmsx::UserSettings::getSettings ( ) const

Definition at line 23 of file UserSettings.hh.

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