[yul-phaser] AlgorithmRunner: Population autosave

This commit is contained in:
Kamil Śliwak
2020-03-18 13:30:58 +01:00
parent 04c7c56d84
commit 1b5960111d
4 changed files with 136 additions and 3 deletions
+3
View File
@@ -42,6 +42,7 @@ public:
struct Options
{
std::optional<size_t> maxRounds = std::nullopt;
std::optional<std::string> populationAutosaveFile = std::nullopt;
};
AlgorithmRunner(
@@ -59,6 +60,8 @@ public:
Population const& population() const { return m_population; }
private:
void populationAutosave() const;
Population m_population;
Options m_options;
std::ostream& m_outputStream;