summaryrefslogtreecommitdiff
path: root/impl/Operator.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-04-20 01:19:54 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-04-20 01:19:54 +1000
commita9de4273bf8377aeab7d3f76a6d8bc0c89b42f79 (patch)
treeb49e84610e194047b77620afb28f864639b3176b /impl/Operator.hpp
parent2ee29b3426d2d79872fba35adbeb8d768983ffec (diff)
Start on the max-strategy stuff. Also more BF.
Diffstat (limited to 'impl/Operator.hpp')
-rw-r--r--impl/Operator.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/impl/Operator.hpp b/impl/Operator.hpp
new file mode 100644
index 0000000..f9a80f3
--- /dev/null
+++ b/impl/Operator.hpp
@@ -0,0 +1,16 @@
+#ifndef OPERATOR_H
+#define OPERATOR_H
+
+#include <map>
+#include <string>
+#include <vector>
+#include "Expression.hpp"
+
+template<typename T>
+struct Operator {
+ virtual const T eval(const std::vector< Expression<T> >&, const std::map<std::string, T>&) const = 0;
+};
+
+#include "Expression.hpp"
+
+#endif