diff options
author | Carlo Zancanaro <carlo@carlo-laptop> | 2012-04-19 16:21:26 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@carlo-laptop> | 2012-04-19 16:21:26 +1000 |
commit | 2ee29b3426d2d79872fba35adbeb8d768983ffec (patch) | |
tree | c1c516816b7fa8d59bea445abd4505860be376bc /impl/Variable.h | |
parent | 5d7252681da3b26845fc4e5dcf0b0e94ed9fabb1 (diff) |
Add presentation; start a different implementation
Diffstat (limited to 'impl/Variable.h')
-rw-r--r-- | impl/Variable.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/impl/Variable.h b/impl/Variable.h deleted file mode 100644 index 7433426..0000000 --- a/impl/Variable.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef VARIABLE_H -#define VARIABLE_H - -#include <string> -#include "Expression.h" - -template<class T> -struct Variable : public Expression<T> { - Variable(const std::string& name) - : _name(name) { } - - std::string name() const { - return this->_name; - } - - T eval(const std::map<std::string, T>& values) const { - return values.find(_name)->second; - } - - private: - const std::string _name; -}; - -#endif |