summaryrefslogtreecommitdiff
path: root/impl/Constant.h
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-04-19 16:21:26 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-04-19 16:21:26 +1000
commit2ee29b3426d2d79872fba35adbeb8d768983ffec (patch)
treec1c516816b7fa8d59bea445abd4505860be376bc /impl/Constant.h
parent5d7252681da3b26845fc4e5dcf0b0e94ed9fabb1 (diff)
Add presentation; start a different implementation
Diffstat (limited to 'impl/Constant.h')
-rw-r--r--impl/Constant.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/impl/Constant.h b/impl/Constant.h
deleted file mode 100644
index bab8cd9..0000000
--- a/impl/Constant.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef CONSTANT_H
-#define CONSTANT_H
-
-#include "Expression.h"
-
-template<class T>
-struct Constant : public Expression<T> {
- Constant(const T& value) : _value(value) { }
-
- T value() const {
- return this->_value;
- }
-
- T eval(const std::map<std::string, T>&) const {
- return _value;
- }
-
- private:
- const T _value;
-};
-
-#endif