Lang Hames | 3ca9a5b | 2009-08-06 23:32:48 +0000 | [diff] [blame^] | 1 | #ifndef LLVM_CODEGEN_PBQP_SOLVER_H |
2 | #define LLVM_CODEGEN_PBQP_SOLVER_H | ||||
3 | |||||
4 | #include "SimpleGraph.h" | ||||
5 | #include "Solution.h" | ||||
6 | |||||
7 | namespace PBQP { | ||||
8 | |||||
9 | /// \brief Interface for solver classes. | ||||
10 | class Solver { | ||||
11 | public: | ||||
12 | |||||
13 | virtual ~Solver() = 0; | ||||
14 | virtual Solution solve(const SimpleGraph &orig) const = 0; | ||||
15 | }; | ||||
16 | |||||
17 | Solver::~Solver() {} | ||||
18 | |||||
19 | } | ||||
20 | |||||
21 | #endif // LLVM_CODEGEN_PBQP_SOLVER_H |