MCPcopy Create free account
hub / github.com/KDE/labplot / initFunctions

Method initFunctions

src/backend/gsl/ExpressionParser.cpp:57–70  ·  view source on GitHub ↗

initialize function list (sync with functions.h and FunctionsWidget.cpp!)

Source from the content-addressed store, hash-verified

55
56// initialize function list (sync with functions.h and FunctionsWidget.cpp!)
57void ExpressionParser::initFunctions() {
58 for (int i = 0; i < _number_functions; i++) {
59 const auto& function = _functions[i];
60 m_functionsDescription << function.description();
61 m_functions << QLatin1String(function.name);
62 m_functionsGroupIndex << function.group;
63 }
64 for (int i = 0; i < _number_specialfunctions; i++) {
65 const auto& function = _special_functions[i];
66 m_functionsDescription << function.description();
67 m_functions << QLatin1String(function.name);
68 m_functionsGroupIndex << function.group;
69 }
70}
71
72// TODO: decide whether we want to have i18n here in the backend part of the code
73void ExpressionParser::initConstants() {

Callers

nothing calls this directly

Calls 1

descriptionMethod · 0.80

Tested by

no test coverage detected