summaryrefslogtreecommitdiff
path: root/src/expression.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-03-27 22:05:00 (GMT)
committerMarius Kintel <marius@kintel.net>2012-03-27 22:05:58 (GMT)
commit327310f190bbd81c7b71b568d5bf72bb900cc9db (patch)
tree9399bb490ecafe9f0c7fd209c680311d829eb631 /src/expression.h
parent4394c7a030ce7a08c95bd1af2e8c38ffcf972439 (diff)
Rewrote the Value class to be based on boost::variant - this should reduce memory footprint and improve performance
Diffstat (limited to 'src/expression.h')
-rw-r--r--src/expression.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expression.h b/src/expression.h
index acbd6aa..2919b78 100644
--- a/src/expression.h
+++ b/src/expression.h
@@ -3,13 +3,14 @@
#include <string>
#include <vector>
+#include "value.h"
class Expression
{
public:
std::vector<Expression*> children;
- class Value *const_value;
+ const Value const_value;
std::string var_name;
std::string call_funcname;
@@ -31,6 +32,7 @@ public:
std::string type;
Expression();
+ Expression(const Value &val);
~Expression();
Value evaluate(const class Context *context) const;
contact: Jan Huwald // Impressum