summaryrefslogtreecommitdiff
path: root/impl/Solver.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-04-26 16:15:17 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-04-26 16:15:17 +1000
commit63a10756032fa5c677787fba209706b8bf1e4bef (patch)
tree705ee15011d9aaeec3b921c3f808427c8aa00589 /impl/Solver.hpp
parenta9de4273bf8377aeab7d3f76a6d8bc0c89b42f79 (diff)
A bunch of modifications working to a good solver.
Diffstat (limited to 'impl/Solver.hpp')
-rw-r--r--impl/Solver.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/impl/Solver.hpp b/impl/Solver.hpp
new file mode 100644
index 0000000..53751ca
--- /dev/null
+++ b/impl/Solver.hpp
@@ -0,0 +1,30 @@
+#ifndef SOLVER_HPP
+#define SOLVER_HPP
+
+template<typename T>
+struct MaxStrategy {
+ MaxStrategy(unsigned int count)
+ : size(count){
+
+ }
+ Expression<T> takeTo(const Expression<T>& from, const Expression<T>& to) {
+ }
+ Expression<T> operator() (const Expression<T>& expression) const {
+ }
+ private:
+ unsigned int count;
+ Expression<T>* mappings;
+};
+
+template<typename T>
+struct Solver {
+ Solver(ExpressionFactory<T> factory, EquationSystem<T> system)
+ : numExpressions(factory.count()), numVariables(system.count()) {
+ }
+ private:
+ unsigned int numExpressions;
+ unsigned int numVariables;
+ MaxStrategy _strategy;
+};
+
+#endif