Add missing virtual modifiers
This commit is contained in:
parent
2e2a95faef
commit
69a4b4becc
|
@ -23,9 +23,9 @@ class CeresSearch
|
||||||
: public LinesSolver
|
: public LinesSolver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
const char xmas_[4] = { 'X', 'M', 'A', 'S' };
|
const char xmas_[4] = { 'X', 'M', 'A', 'S' };
|
||||||
void computeXmasCount(const Point2& start);
|
void computeXmasCount(const Point2& start);
|
||||||
|
|
|
@ -21,10 +21,10 @@ class GuardGallivant
|
||||||
: public LinesSolver
|
: public LinesSolver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void processDataLine(const std::string& line) override;
|
virtual void processDataLine(const std::string& line) override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
Point2 start_{};
|
Point2 start_{};
|
||||||
void visitPosition(const Point2& current);
|
void visitPosition(const Point2& current);
|
||||||
|
|
|
@ -24,9 +24,9 @@ class HoofIt
|
||||||
: public LinesSolver
|
: public LinesSolver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
const char getTrailheadChar() const;
|
const char getTrailheadChar() const;
|
||||||
const char getTrailTopChar() const;
|
const char getTrailTopChar() const;
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
class LanParty : public Solver
|
class LanParty : public Solver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void processDataLine(const std::string& line) override;
|
virtual void processDataLine(const std::string& line) override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
Graph lan_;
|
Graph lan_;
|
||||||
void computeInterconnectedThreeSetCount(const Vertex& vertexTx);
|
void computeInterconnectedThreeSetCount(const Vertex& vertexTx);
|
||||||
|
|
|
@ -24,7 +24,7 @@ class LinesSolver
|
||||||
: public Solver
|
: public Solver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void processDataLine(const std::string& line) override;
|
virtual void processDataLine(const std::string& line) override;
|
||||||
protected:
|
protected:
|
||||||
std::vector<std::string> lines{};
|
std::vector<std::string> lines{};
|
||||||
bool isInBounds(const Point2& point) const;
|
bool isInBounds(const Point2& point) const;
|
||||||
|
|
|
@ -24,10 +24,10 @@ class MullItOver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MullItOver();
|
MullItOver();
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void processDataLine(const std::string& line) override;
|
virtual void processDataLine(const std::string& line) override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
MullData data_;
|
MullData data_;
|
||||||
MullStates states_;
|
MullStates states_;
|
||||||
|
|
|
@ -22,10 +22,10 @@ class PrintQueue
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PrintQueue();
|
PrintQueue();
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void processDataLine(const std::string& line) override;
|
virtual void processDataLine(const std::string& line) override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
static const int nPages_{ 49 };
|
static const int nPages_{ 49 };
|
||||||
static const int maxPageNo_{ 99 };
|
static const int maxPageNo_{ 99 };
|
||||||
|
|
|
@ -23,10 +23,10 @@ class RedNosedReports
|
||||||
: public Solver
|
: public Solver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const std::string getPuzzleName() const override;
|
virtual const std::string getPuzzleName() const override;
|
||||||
const std::string getInputFileName() const override;
|
virtual const std::string getInputFileName() const override;
|
||||||
void processDataLine(const std::string& line) override;
|
virtual void processDataLine(const std::string& line) override;
|
||||||
void finish() override;
|
virtual void finish() override;
|
||||||
private:
|
private:
|
||||||
void checkLastLevel(const Slope sameSlope, const Slope otherSlope,
|
void checkLastLevel(const Slope sameSlope, const Slope otherSlope,
|
||||||
const int delta, const int sign, RedNosedReportData& data);
|
const int delta, const int sign, RedNosedReportData& data);
|
||||||
|
|
Loading…
Reference in New Issue