Add missing virtual modifiers

This commit is contained in:
Stefan Müller 2024-12-25 21:43:58 +01:00
parent 2e2a95faef
commit 69a4b4becc
8 changed files with 27 additions and 27 deletions

View File

@ -23,9 +23,9 @@ class CeresSearch
: public LinesSolver
{
public:
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void finish() override;
private:
const char xmas_[4] = { 'X', 'M', 'A', 'S' };
void computeXmasCount(const Point2& start);

View File

@ -21,10 +21,10 @@ class GuardGallivant
: public LinesSolver
{
public:
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void processDataLine(const std::string& line) override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void processDataLine(const std::string& line) override;
virtual void finish() override;
private:
Point2 start_{};
void visitPosition(const Point2& current);

View File

@ -24,9 +24,9 @@ class HoofIt
: public LinesSolver
{
public:
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void finish() override;
private:
const char getTrailheadChar() const;
const char getTrailTopChar() const;

View File

@ -21,10 +21,10 @@
class LanParty : public Solver
{
public:
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void processDataLine(const std::string& line) override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void processDataLine(const std::string& line) override;
virtual void finish() override;
private:
Graph lan_;
void computeInterconnectedThreeSetCount(const Vertex& vertexTx);

View File

@ -24,7 +24,7 @@ class LinesSolver
: public Solver
{
public:
void processDataLine(const std::string& line) override;
virtual void processDataLine(const std::string& line) override;
protected:
std::vector<std::string> lines{};
bool isInBounds(const Point2& point) const;

View File

@ -24,10 +24,10 @@ class MullItOver
{
public:
MullItOver();
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void processDataLine(const std::string& line) override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void processDataLine(const std::string& line) override;
virtual void finish() override;
private:
MullData data_;
MullStates states_;

View File

@ -22,10 +22,10 @@ class PrintQueue
{
public:
PrintQueue();
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void processDataLine(const std::string& line) override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void processDataLine(const std::string& line) override;
virtual void finish() override;
private:
static const int nPages_{ 49 };
static const int maxPageNo_{ 99 };

View File

@ -23,10 +23,10 @@ class RedNosedReports
: public Solver
{
public:
const std::string getPuzzleName() const override;
const std::string getInputFileName() const override;
void processDataLine(const std::string& line) override;
void finish() override;
virtual const std::string getPuzzleName() const override;
virtual const std::string getInputFileName() const override;
virtual void processDataLine(const std::string& line) override;
virtual void finish() override;
private:
void checkLastLevel(const Slope sameSlope, const Slope otherSlope,
const int delta, const int sign, RedNosedReportData& data);