Add missing virtual modifiers
This commit is contained in:
parent
2e2a95faef
commit
69a4b4becc
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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_;
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue