Fix some private field identifiers
This commit is contained in:
@@ -27,7 +27,7 @@ class CeresSearch
|
||||
std::string getInputFileName() const override;
|
||||
void finish() override;
|
||||
private:
|
||||
char xmas[4] = { 'X', 'M', 'A', 'S' };
|
||||
char xmas_[4] = { 'X', 'M', 'A', 'S' };
|
||||
void computeXmasCount(const Point2& start);
|
||||
void computeX_MasCount(const Point2& start);
|
||||
};
|
||||
|
||||
@@ -21,11 +21,12 @@ class GuardGallivant
|
||||
: public LinesSolver
|
||||
{
|
||||
public:
|
||||
Point2 start_{};
|
||||
std::string getPuzzleName() const override;
|
||||
std::string getInputFileName() const override;
|
||||
void processDataLine(const std::string& line) override;
|
||||
void finish() override;
|
||||
private:
|
||||
Point2 start_{};
|
||||
void visitPosition(const Point2& current);
|
||||
size_t turnDirection(const size_t current) const;
|
||||
size_t getStartDirectionIndex() const;
|
||||
|
||||
@@ -28,6 +28,6 @@ class HistorianHysteria
|
||||
virtual void processDataLine(const std::string& line) override;
|
||||
virtual void finish() override;
|
||||
private:
|
||||
std::multiset<int> left;
|
||||
std::multiset<int> right;
|
||||
std::multiset<int> left_;
|
||||
std::multiset<int> right_;
|
||||
};
|
||||
|
||||
@@ -27,7 +27,6 @@ class SolverEngine
|
||||
public:
|
||||
SolverEngine(const std::vector<std::string>& inputPaths);
|
||||
void run(Solver& solver);
|
||||
|
||||
private:
|
||||
std::vector<std::string> inputPaths_;
|
||||
std::filesystem::path tryGetValidFullInputFilePath(const std::string& inputFileName);
|
||||
|
||||
Reference in New Issue
Block a user