diff options
Diffstat (limited to 'impl/Expression.h')
-rw-r--r-- | impl/Expression.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/impl/Expression.h b/impl/Expression.h deleted file mode 100644 index 38a5e65..0000000 --- a/impl/Expression.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef EXPRESSION_H -#define EXPRESSION_H - -#include <map> -#include <string> -#include <vector> -template<typename T> -struct Expression; -#include "Operator.h" - -template<typename T> -struct Expression { - Expression(Operator<T>* o, std::vector< Expression<T> > a) - : _operator(o), _arguments(a) { } - virtual const T minvalue(std::map<std::string, T> m) const { - return _operator->eval(_arguments, m); - } - virtual const T maxvalue(std::map<std::string, T> m) const { - return _operator->eval(_arguments, m); - } - private: - Operator<T>* _operator; - std::vector< Expression<T> > _arguments; -}; - -#endif |