From 5d7252681da3b26845fc4e5dcf0b0e94ed9fabb1 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 6 Apr 2012 14:02:26 +1000 Subject: Move everything into impl/ and add a Makefile. --- Sum.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Sum.h (limited to 'Sum.h') diff --git a/Sum.h b/Sum.h deleted file mode 100644 index bf04669..0000000 --- a/Sum.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef SUM_H -#define SUM_H - -#include "Expression.h" - -template -struct Sum : public Expression { - Sum(Expression* left, Expression* right) - : _left(left), _right(right) { } - - T eval(const std::map& mappings) const { - T left = _left->eval(mappings); - T right = _right->eval(mappings); - return left + right; - } - - private: - Expression* _left; - Expression* _right; -}; - -#endif -- cgit v1.2.3