forked from NikitaS4/UI_lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathISolver.h
More file actions
40 lines (30 loc) · 910 Bytes
/
Copy pathISolver.h
File metadata and controls
40 lines (30 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef ISOLVER_H
#define ISOLVER_H
#include "IVector.h"
#include "IProblem.h"
#include <QString>
class ISolver
{
public:
enum InterfaceTypes
{
INTERFACE_0,
DIMENSION_INTERFACE_IMPL
};
virtual RESULT_CODE setParams(IVector const* params) = 0;
virtual RESULT_CODE setParams(QString& str) = 0;
virtual RESULT_CODE setProblem(IProblem *pProblem) = 0;
virtual RESULT_CODE setProblemParams(IVector const* params) = 0;
virtual RESULT_CODE setCompact(ICompact * pCompact) = 0;
virtual size_t getParamsDim() const = 0;
virtual RESULT_CODE solve() = 0;
virtual RESULT_CODE getSolution(IVector * &vec)const = 0;
protected:
virtual ~ISolver() = default;
ISolver() = default;
private:
/* no way default copy/assignment */
ISolver(const ISolver& other) = delete;
void operator=(const ISolver& other) = delete;
};
#endif // ISOLVER_H