diff options
author | Carlo Zancanaro <carlo@carlo-laptop> | 2012-04-20 01:19:54 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@carlo-laptop> | 2012-04-20 01:19:54 +1000 |
commit | a9de4273bf8377aeab7d3f76a6d8bc0c89b42f79 (patch) | |
tree | b49e84610e194047b77620afb28f864639b3176b /impl/Operator.hpp | |
parent | 2ee29b3426d2d79872fba35adbeb8d768983ffec (diff) |
Start on the max-strategy stuff. Also more BF.
Diffstat (limited to 'impl/Operator.hpp')
-rw-r--r-- | impl/Operator.hpp | 16 |
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 |