-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # CMakeLists.txt
- Loading branch information
Showing
11 changed files
with
93 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Created by t on 1/16/19. | ||
// | ||
|
||
#include "MatrixCacheAdapter.h" | ||
|
||
MatrixCacheAdapter::MatrixCacheAdapter(FileCacheManager *fileCacheManager1) { | ||
this->fileCacheManager = fileCacheManager1; | ||
} | ||
|
||
bool MatrixCacheAdapter::hasSolutionForProblem(Matrix problem) { | ||
this->fileCacheManager->hasSolutionForProblem(problem.) | ||
} | ||
string MatrixCacheAdapter::getSolutionForProblem(Matrix problem); | ||
void MatrixCacheAdapter::save(Matrix problem, string solution); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// Created by t on 1/16/19. | ||
// | ||
|
||
#ifndef FLIGTSIMPROJ2_MATRIXCACHEADAPTER_H | ||
#define FLIGTSIMPROJ2_MATRIXCACHEADAPTER_H | ||
|
||
#include "FileCacheManager.h" | ||
#include "CacheManager.h" | ||
#include "Matrix.h" | ||
using namespace std; | ||
|
||
class MatrixCacheAdapter : public CacheManager<Matrix, string> { | ||
FileCacheManager *fileCacheManager; | ||
public: | ||
MatrixCacheAdapter(FileCacheManager *fileCacheManager1); | ||
virtual bool hasSolutionForProblem(Matrix problem); | ||
virtual string getSolutionForProblem(Matrix problem); | ||
virtual void save(Matrix problem, string solution); | ||
}; | ||
|
||
|
||
#endif //FLIGTSIMPROJ2_MATRIXCACHEADAPTER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters