Krita Source Code Documentation
Loading...
Searching...
No Matches
SeExprExpressionContext.cpp
Go to the documentation of this file.
1/*
2 * This file is part of Krita
3 *
4 * SPDX-FileCopyrightText: 2020 L. E. Segovia <amy@amyspark.me>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
10
12 : KSeExpr::Expression(expr.toStdString())
13 , m_vars(VariableMap())
14{
15}
16
17KSeExpr::ExprVarRef *SeExprExpressionContext::resolveVar(const std::string &name) const
18{
19 return m_vars.value(name, nullptr);
20}
SeExprExpressionContext(const QString &expr)
virtual KSeExpr::ExprVarRef * resolveVar(const std::string &name) const override
QMap< std::string, SeExprVariable * > VariableMap