summaryrefslogtreecommitdiff
path: root/impl/ExpressionFactory.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-04-26 22:32:35 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-04-26 22:32:35 +1000
commit76a4f0fcf3a9bf54ef910cdb2c0bebea37182391 (patch)
tree86ebaa6f86b53557d92e09ea1a74d2812da01df4 /impl/ExpressionFactory.hpp
parent63a10756032fa5c677787fba209706b8bf1e4bef (diff)
A new attempt. Better strategies implementation.
Still lacking: - Factories (to set the ids) - Solver - Systems of equations
Diffstat (limited to 'impl/ExpressionFactory.hpp')
-rw-r--r--impl/ExpressionFactory.hpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/impl/ExpressionFactory.hpp b/impl/ExpressionFactory.hpp
deleted file mode 100644
index 605dd9e..0000000
--- a/impl/ExpressionFactory.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef EXPRESSION_FACTORY_HPP
-#define EXPRESSION_FACTORY_HPP
-
-#include "Expression.hpp"
-
-template<typename T>
-struct ExpressionFactory {
- ExpressionFactory() : id(0) { }
- Expression<T> createExpression(Operator<T>* op, std::vector< Expression<T> > args) {
- return Expression<T>(id++, op, args);
- }
- unsigned int count() const {
- return id;
- }
- private:
- unsigned int id;
-};
-
-#endif