summaryrefslogtreecommitdiff
path: root/context.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-21 06:53:46 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-06-21 06:53:46 (GMT)
commit1c2472067c3843342f56b5833c284106ab349417 (patch)
treefd6f914e8cf19337a14b9663b6bda4a6642b8a70 /context.cc
parente416017c5e0ef689e9fbc43b520632cde7927c26 (diff)
Clifford Wolf:
Improved backend data structures Added dump feature to backend data git-svn-id: http://svn.clifford.at/openscad/trunk@4 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'context.cc')
-rw-r--r--context.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/context.cc b/context.cc
index 6cfae25..e75592a 100644
--- a/context.cc
+++ b/context.cc
@@ -37,7 +37,7 @@ void Context::args(const QVector<QString> &argnames, const QVector<Expression*>
}
}
-Value Context::lookup_variable(QString name)
+Value Context::lookup_variable(QString name) const
{
if (variables.contains(name))
return variables[name];
@@ -46,7 +46,7 @@ Value Context::lookup_variable(QString name)
return Value();
}
-Value Context::evaluate_function(QString name, const QVector<QString> &argnames, const QVector<Value> &argvalues)
+Value Context::evaluate_function(QString name, const QVector<QString> &argnames, const QVector<Value> &argvalues) const
{
if (functions_p->contains(name))
return functions_p->value(name)->evaluate(this, argnames, argvalues);
@@ -55,7 +55,7 @@ Value Context::evaluate_function(QString name, const QVector<QString> &argnames,
return Value();
}
-AbstractNode *Context::evaluate_module(QString name, const QVector<QString> &argnames, const QVector<Value> &argvalues)
+AbstractNode *Context::evaluate_module(QString name, const QVector<QString> &argnames, const QVector<Value> &argvalues) const
{
if (modules_p->contains(name))
return modules_p->value(name)->evaluate(this, argnames, argvalues);
contact: Jan Huwald // Impressum