Luanti 5.19.0-dev
Loading...
Searching...
No Matches
quicktune.cpp File Reference
#include "quicktune.h"
#include <map>
#include "threading/mutex_auto_lock.h"
#include "util/string.h"
Include dependency graph for quicktune.cpp:

Functions

const std::vector< std::string > & getQuicktuneNames ()
QuicktuneValue getQuicktuneValue (const std::string &name)
void setQuicktuneValue (const std::string &name, const QuicktuneValue &val)
void updateQuicktuneValue (const std::string &name, QuicktuneValue &val)

Variables

static std::map< std::string, QuicktuneValue > g_values
static std::vector< std::string > g_names
static std::mutex g_mutex

Function Documentation

◆ getQuicktuneNames()

const std::vector< std::string > & getQuicktuneNames ( )

References g_names, and getQuicktuneNames().

Referenced by getQuicktuneNames(), QuicktuneShortcutter::next(), QuicktuneShortcutter::prev(), and print_modified_quicktune_values().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getQuicktuneValue()

QuicktuneValue getQuicktuneValue ( const std::string & name)

References QuicktuneValue::QuicktuneValue(), g_mutex, g_values, and getQuicktuneValue().

Referenced by QuicktuneShortcutter::dec(), getQuicktuneValue(), QuicktuneShortcutter::inc(), and print_modified_quicktune_values().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setQuicktuneValue()

void setQuicktuneValue ( const std::string & name,
const QuicktuneValue & val )

References g_mutex, g_values, and setQuicktuneValue().

Referenced by QuicktuneShortcutter::dec(), QuicktuneShortcutter::inc(), and setQuicktuneValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateQuicktuneValue()

void updateQuicktuneValue ( const std::string & name,
QuicktuneValue & val )

References g_mutex, g_names, g_values, QuicktuneValue::modified, and updateQuicktuneValue().

Referenced by updateQuicktuneValue().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_mutex

std::mutex g_mutex
static

◆ g_names

std::vector<std::string> g_names
static

◆ g_values

std::map<std::string, QuicktuneValue> g_values
static